Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 18th, 2005, 1:10 PM   #1
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,094
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is online now   Reply With Quote
Old Jun 23rd, 2005, 6:33 PM   #2
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
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.
Cerulean is offline   Reply With Quote
Old Jun 24th, 2005, 9:52 AM   #3
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,094
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is online now   Reply With Quote
Old Jun 25th, 2005, 6:52 AM   #4
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
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.
Cerulean is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:53 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC