Thread: GUI question

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

    Join Date
    Aug 2003
    Posts
    104
    Rep Power
    12

    Arrow GUI question


    hi, i am very new to python...i would like to ask how am i able to program an application with python using the gui control available.....pls post some sites for me to refer to and can someone post a code on how to create a simple input box for user to enter for me to have a view on the syntax of python....thanks alot....
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    133
    Rep Power
    12
    You might find something useful at Python GUI Programming at metaslash.com.

    Another link you could follow is An Introduction to Tkinter at pythonware.com.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    104
    Rep Power
    12
    is there any way that i can use python to build a new window???pls post some syntax for me to explore.....thanks
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    NC, USA
    Posts
    364
    Rep Power
    13
    Yes you can build windowed apps with Python. Check out a tkinter tutorial and you can also try out wxpython, it's pretty popular.
    Last edited by damonbrinkley; September 3rd, 2003 at 08:25 AM.
  8. #5
  9. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    I'm a lil comfused, do you mean just a basic window app or a sub window? Here is the hello world example from the Tkinter intro plus comments..

    Code:
    #import all from the Tkinter module
    from Tkinter import *
    
    #make an instance of Tk() named root.
    root = Tk()
    
    #create a lable with the words "Hello, world!"..
    w = Label(root, text="Hello, world!")
    #then make the lable visable inside the root window.
    w.pack()
    
    #set a continuous loop, when the loop ends the window will close.
    root.mainloop()
    Mark.

IMN logo majestic logo threadwatch logo seochat tools logo