Thread: GUI Programming

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

    Join Date
    Aug 2003
    Posts
    217
    Rep Power
    0

    GUI Programming


    Would you recommend Tkinter or wxPython for GUI programming with Python?
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Go with wxPython, Tkinter is.... lets just say i'm not impressed with it and i'm looking forward to the day when Python drops it all together; but thats gonna be a while

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

  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    217
    Rep Power
    0
    Hmm.. is there anything in perticular you don't like about it? Also how easy is it to get/install wxPython. I'm on OS X.
  6. #4
  7. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,616
    Rep Power
    4247
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  8. #5
  9. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Tk is just so old, it looks old, feels old. Its slower than wxPython or pyQt. Ease of use Tk probably better than these but then the others have so much more to offer (which means more to remember) but worth it IMO.

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

  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    217
    Rep Power
    0
    @Scorp: Hehe cool URL
    @netytan: Thanks for the advice

    I think I'm going to give wxPython a try. It's installing on FreeBSD atm, but I'm still unsure about how to get it working on OS X

    btw this will be my first experience with GUI programming. Hopefully it will be easier than in C

    [edit] How well does it work with OS X? Can I make all the same menus/buttons/etc that someone would be able to with Carbon or Cocoa? [/edit]
    Last edited by XxChris; January 27th, 2004 at 06:41 PM.
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    325
    Rep Power
    12
    Qt is awesome

    I highly reccomend it
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    217
    Rep Power
    0
    Well I have wxPython installed on OS X so everythings fine

    @lazy_yogi: I'll make sure I look into pyQt too
  16. #9
  17. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    13
    Considering it's free, Boa Constructor is a good IDE for wxPython:
    http://wiki.wxpython.org/index.cgi/Boa_20Constructor

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

    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    383
    Rep Power
    13
    Tk does have one huge thing going for it - it's distributed with the standard Python distribution. So for things you want to run everywhere that Python does ... Tk is a good choice, even though it's fuh-huugly.

    Personally, I recommend using Glade and Python's libglade module for building GUI apps. It separates the GUI part from the coding part as much as possible, which is IMO a good thing. You can design whatever GUI you want, attach generic (but descriptive) listener names to each important event, and not even worry about the underlying implementation until you've got whatever GUI portion you want. No messy code generation, no tedious packing of widgets into boxes. It's rather cool. If nothing else, I suggest playing with it.
  20. #11
  21. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Anyone know if Tk works on MacOS? I was under the impression it doesnt which is why theres no IDLE available for Mac; may be mistaken though

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

  22. #12
  23. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    217
    Rep Power
    0
    @Strike: I guess Glade will be something to look into too, hehe.

    @netytan: Yes it does, http://developer.apple.com/unix/toolkits.html

    Thanks
  24. #13
  25. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Thanks for the info . Gave me an idea for a simple GUI framework if i ever get around to it; always good to have more ideas than you can use!

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

  26. #14
  27. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Location
    New Zealand
    Posts
    1
    Rep Power
    0
    Greetings, i am very noob to python, tho i am more than impressed. As a learning excersize i am trying to build a small sms program that uses a gui and is relatively platform independant (linux, windoze etc).

    i have boa and wx installed on my gentoo system and my windoze system because i was under the impression that wx is probly the easiest to port between o/s

    Have i made the right move? is pyqt just as compatable? HELP!
    note: i am coming from php programming
  28. #15
  29. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    13
    koz, The Chandler project did a review of cross platform GUIs and chose wxPython. This was for a number of reasons. But it indicates the relative completeness, maturity and appropriate licensing of wxPython. It does have very active development and the underlying wxWindows is v popular too with C programmers. Does not mean it is best for you tho

    BTW if you want to chat SMS PDU code let me know

    Grim

IMN logo majestic logo threadwatch logo seochat tools logo