![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programming Guru
![]() ![]() |
PYGTK, How Do I Get It To Work?
www.PyGtk.org
It keeps switching from talking about "PyGtk", and "Gtk". And I know there is www.Gtk.org . So do I need to download both? How would I install Gtk to Python? OMG IM SO FONCUSED! :eek: (I already tried download 2.6.3. for Python 2.3, and it says none of the commands I try exist...) P.S. The buttons in PyGTK can be used on the screen created by PyGame, right?
__________________
Looking for tough programming challenges? Try participating in Sane's Monthly Algorithms Challenges! Composing Techno is a little side hobby of mine. Techno by DJ Sane. All free for download. Last edited by Sane; Jun 18th, 2005 at 1:26 PM. |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
You need both the GTK and pyGTK packages, but IMO you really don't want to go down the pyGTK route because pyGTK is a non-intuitive binding around an ugly C api. You're better off with wxPython or something.
A pyGame window is SDL, so no, you it can't. You can create a control that embeds pyGame in wxPython, however, with reasonable success. |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() |
Okay I need some help then, because I know nothing about programming outside the actual language functions...(never took computer classes lol).
So I basically need some way that is the most efficient to make a clickable button on the PyGame created window...
__________________
Looking for tough programming challenges? Try participating in Sane's Monthly Algorithms Challenges! Composing Techno is a little side hobby of mine. Techno by DJ Sane. All free for download. |
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Just a bit more information if you're curious: GTK is a graphical user interface toolkit created for use under Linux, originally used for the GIMP program (GNU Image Manipulation Program). pyGTK is just Python bindings so you can use GTK from Python. IMO you want to use an object-orientated GUI toolkit (again, wxPython), for the obvious advantages of closer Python integration and scalability.
As for creating a pyGame button, start a new topic. I've already got an answer lined up. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|