[Tutor] Graphic interface
Rance Hall
ranceh at gmail.com
Tue May 10 15:24:18 CEST 2011
On Tue, May 10, 2011 at 7:41 AM, louis leichtnam <l.leichtnam at gmail.com> wrote:
> Hello,
> I'm trying to build a graphic interface, with button, radiobutton, enter
> text area etc.
> Does anyone have an idea or a source code for this?
> Thank you,
> Louis
How you do this exactly depends on a number of things you don't specify.
When you jump into the world of graphical programming there is such a
thing as a window manager.
GTK, QT, KDE, TK, and Windows all have different ways of addressing
these same issues.
Python even has its own builtin thing called Tkinter that uses the TK
widget set (the widgets are the buttons, sliderbars, etc)
You can use Tkinter, or you can bind python to the GTK or KDE widget
set and ask python to create those widgets and explain how to arrange
them on the screen and the window manager will handle the heavy
lifting for you.
Source code won't help you if you don't understand the above and
limitations/options available in the widget set you have chosen.
Most of the code samples are Object Oriented. If you are not familiar
with coding objects then you will likely find the code samples rather
daunting -- I know I did.
I think I'd recommend that you start with Tkinter since it is cross
platform compatible that way it doesn't matter what OS you use your
code will still work.
May I suggest that you go read about TK and Tkinter and decide if they
are appropriate for your project.
Then you can ask a specific question that can be answered.
HTH
Rance
More information about the Tutor
mailing list