Best GUI toolkit?

Thread Solved
Reply

Join Date: Jul 2005
Posts: 68
Reputation: danizzil14 is an unknown quantity at this point 
Solved Threads: 1
danizzil14's Avatar
danizzil14 danizzil14 is offline Offline
Junior Poster in Training

Best GUI toolkit?

 
0
  #1
Nov 24th, 2006
Ok, so I'm gonna work on a program, and I want to enable a gui for it.

I have a few questions though...

Question: Are there any out there that wont need a class structure? (I;ve never gotten them, and I'm working on them right now...)

Question: How about easily updated and most versitile?

Question: In your opinion, which is best?
Blender is by far the best free 3D computer Graphics program and it is expandable with python! GoTo www.blender3d.org
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 376
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Best GUI toolkit?

 
0
  #2
Nov 25th, 2006
I think visual studio, is insanely easy to create a good looking gui.

Of course you'll need the dotnet framework, but that's not a problem if you don't have it. You just download it. And learning oop is a piece of cake ain't it.

Java as well, with a GUI builder would also be quick and easy. As long as you have a good idea regarding back end programming you shouldn't have a problem.

For python try this:
http://wxglade.sourceforge.net/

Respect, from one blender fan to another.
Last edited by iamthwee; Nov 25th, 2006 at 11:10 am.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 3,862
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 870
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Best GUI toolkit?

 
0
  #3
Nov 25th, 2006
None of the traditional GUI toolkits for Python require you to use object oriented programming ('OOP has class'), but it makes more complex programs easier to write and maintain. For some additional info see:
http://www.daniweb.com/techtalkforums/thread61194.html
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2,275
Reputation: sneekula has a spectacular aura about sneekula has a spectacular aura about 
Solved Threads: 174
sneekula's Avatar
sneekula sneekula is offline Offline
Nearly a Posting Maven

Re: Best GUI toolkit?

 
0
  #4
Nov 27th, 2006
I have started to program with windows concepts. It is different then console and that is were the learning curve sets in. Once you realize how to approach a GUI with its frames, windows, dialog boxes, buttons, labels and so on, you will enjoy it. I use Tkinter right now, it is part of the Python installation, and seems to be the easiest GUI toolkit to learn with.
No one died when Clinton lied.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 1,514
Reputation: Ene Uran has a spectacular aura about Ene Uran has a spectacular aura about 
Solved Threads: 168
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Posting Virtuoso

Re: Best GUI toolkit?

 
0
  #5
Nov 27th, 2006
Hi there danizzil14, I am giving you two examples of a simple Tkinter 'Hello World' code. The first one is without the use of class:
  1. # Tkinter programming without a class
  2.  
  3. from Tkinter import *
  4.  
  5. def say_hi():
  6. # function for hi_button action
  7. # show new text on the label
  8. hi_label.config(text="Hi there, everyone!")
  9.  
  10.  
  11. # create the basic window
  12. root = Tk()
  13.  
  14. frame = Frame(root)
  15. frame.pack()
  16. # specify button action with command=function
  17. # foreground/fg is red to color text
  18. q_button = Button(frame, text=" QUIT ", fg="red", command=root.destroy)
  19. q_button.pack(side=LEFT)
  20.  
  21. hi_button = Button(frame, text=" Hello ", command=say_hi)
  22. hi_button.pack(side=LEFT)
  23. # width of label is in characters
  24. hi_label = Label(frame, text=" Hello, world! ", bg='yellow', width=20)
  25. hi_label.pack(side=LEFT)
  26.  
  27. # start the event loop to respond to mouse clicks etc.
  28. root.mainloop()
Here is the same program using a class structure:
  1. # Tkinter programming using a class
  2.  
  3. from Tkinter import *
  4.  
  5. class App(object):
  6. """create a frame/window with 2 buttons and a label"""
  7. def __init__(self, master):
  8. frame = Frame(master)
  9. frame.pack()
  10. # specify button action with command=function
  11. # foreground/fg is red to color text
  12. self.q_button = Button(frame, text=" QUIT ", fg="red", command=root.destroy)
  13. self.q_button.pack(side=LEFT)
  14.  
  15. self.hi_button = Button(frame, text=" Hello ", command=self.say_hi)
  16. self.hi_button.pack(side=LEFT)
  17. # width of label is in characters
  18. self.hi_label = Label(frame, text=" Hello, world! ", bg='yellow', width=20)
  19. self.hi_label.pack(side=LEFT)
  20.  
  21. def say_hi(self):
  22. # function for hi_button action
  23. # show new text on the label
  24. self.hi_label.config(text="Hi there, everyone!")
  25.  
  26. # create the basic window
  27. root = Tk()
  28. # instantiate the App class
  29. app = App(root)
  30. # start the event loop to respond to mouse clicks etc.
  31. root.mainloop()
Last edited by vegaseat; Aug 13th, 2009 at 4:02 pm. Reason: newer code tags
drink her pretty
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC