![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programming Guru
![]() |
Help With Buttons
I want to make a function that can call a different result of buttons based on the argument you give it. But how do I make clickable buttons, and how do I handle their input?
|
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Jun 2004
Location: South Africa, Johannesburg
Posts: 301
Rep Power: 5
![]() |
I just found out how to do this. Google told me after 5 minutes.
![]() |
|
|
|
|
|
#3 |
|
Programming Guru
![]() |
That's all good, but since I couldn't find it there, I came here for help. Mind helping?
|
|
|
|
|
|
#4 |
|
Programming Guru
![]() |
Guys, help please?
|
|
|
|
|
|
#5 | |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Quote:
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
|
#6 |
|
Newbie
|
Sane: I think the answer depends on which gui library you're using. Also, I don't understand exactly what it is you want, so you might want to simplify your question; some pseudo-code might help...
--Jonas
__________________
now go away or I shall taunt you a second time :D |
|
|
|
|
|
#7 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Sane - as jonaskoelker said, it all depends on what toolkit you're using for your graphical elements. Do some research on all the toolkits available, and you'll find that the best solution is PyQt if you don't want to write commercial apps (or if you do, and happen to have ~$1700 laying around), and wxPython otherwise. Personally I use wxPython in Python and Qt/KDE with C++.
There are some pretty good, explanatory wxPython tutorials available on the net. Ask Google (which actually yields quite good results, contrary to beliefs expressed in this thread) ![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|