Thread: Getting started

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Posts
    133
    Rep Power
    11

    Getting started


    Ok, I already read some tutorials on Python and want to know what i need to continue. (like what programs :P)

    Anyways, i have Python 2.4 and py2exe 2.4

    i looked for wxPython but wasnt sure on what to download.
    i downloaded: win32 ansi for windows.

    I use Windows XP pro, now is what i downloaded good to start coding with wxpython?
    And anything else i need?

    another very noobish question: what's a GUI builder?
  2. #2
  3. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    154
    Yes, that's all you need. The Python Interpreter and Pythonwin that come with your copy of Python are all you need to create Python applications. wxPython is probably the best GUI builder out there. A GUI builder is a program that builds a GUI, a graphical (not always) user interface. GUI builder is probably the more lower term to refer to a program as. You could simply call them an interface developer or gui toolkit.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Posts
    133
    Rep Power
    11
    Thanks dude


    Now the GUI Builder:
    Programs like boa constructor which include the wxpython, now what does the boa constructor do then?

    cause normally you have to code a wxpython code to make it have a 'layout' right? im asuming boa constructor makes this easier for you somehow?
    like C++ and Visual C++ ?!
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2004
    Location
    There where the rabbits jump
    Posts
    556
    Rep Power
    11
    In Boa Constructor it makes the code for you. You chose on a GUI what you want on your GUI and then it gives you the code and I guess (because I have never used it) you insert it in you code and run the program with the "if __name__ == "__main__":" checker, however you wanna call it.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Posts
    133
    Rep Power
    11
    Originally Posted by monkeyman23555
    In Boa Constructor it makes the code for you. You chose on a GUI what you want on your GUI and then it gives you the code and I guess (because I have never used it) you insert it in you code and run the program with the "if __name__ == "__main__":" checker, however you wanna call it.
    !!

    Cheers mate
  10. #6
  11. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    154
    Boa is drag-and-drop developement. wxPython makes you do all of this manually by adding in the correct code. I however prefer wxPython.
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Posts
    133
    Rep Power
    11
    Originally Posted by †Yegg†
    Boa is drag-and-drop developement. wxPython makes you do all of this manually by adding in the correct code. I however prefer wxPython.
    Yeah im going to stick with wxPython too.


    Also how could i make databases in Python? would i have to learn a language or is there a program?
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Posts
    133
    Rep Power
    11
    can anyone answer my last question on databases used on Python?
  16. #9
  17. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    It really depends on what you mean by database, for instance you could use a flat file database such as anydbm or a relational database ala SQLite. You could even use Pickel to store a dictionary in a file or role your own code for the database .

    Here are a few links to get you started. You might also want to search this forum.

    http://www.python.org/doc/2.4.1/lib/module-anydbm.html
    http://www.python.org/doc/2.4.1/lib/module-pickle.html
    http://www.pysqlite.org/
    http://www.devshed.com/c/a/Python/MySQL-Connectivity-With-Python/

    Hope this helps,

    Mark.
    programming language development: www.netytan.com Hula

  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Posts
    133
    Rep Power
    11
    I was leaning more towards relational DB.

    Thanks for the links !!
  20. #11
  21. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Posts
    461
    Rep Power
    25
    if your looking for say mysql support just google python mysql or whatever database system you are wanting to get the modules needed to connect


    now back to your wxPython questions, boa codes an app in wxPython but it does all the stupid stuff like actually building the gui out for you. and lets you keep to the code of the app. I use boa a lot because i personly hate building guis and boa simplifies that and lets me roll my software out faster.

    however even with boa you do need some knowlege of wxPython well you at least need knowlege of how to read the documentiation that is usually fond for just c++ even tho it is about the same. except for a few minor differances witch it outlines for wxPython
  22. #12
  23. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Posts
    133
    Rep Power
    11
    Thanks for the info.

    and i downloaded a python - mysql module.
    hope it works ^_^.
  24. #13
  25. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Posts
    133
    Rep Power
    11
    Sorry for the second post

    But im having some problems with the mysql module, i downloaded the tar file and untarred it.
    I ran setup.py but it tells me that it's looking for the directory in C:\ProgramFile\w/e w/e
    But my Python directory is in C:\Python24

    Now i dont want to reinstall Python, so how would i want this to work? >_>


    EDIT: Nvm got it to work

IMN logo majestic logo threadwatch logo seochat tools logo