| | |
Making an official-looking window
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
I'd like to make a bogus Windows window pop up asking the user to choose between energy settings (better performance vs. better energy savings). This is for a social psychological experiment about ecologically sustainable behavior, so it's completely legitimate; it's approved by an ethical board, and the participants will be debriefed about the nature of the deception afterward.
Now, I've done plenty of programming of experiments in python before (mostly using Tkinter), but I've never done anything deliberately designed to be so akin to native Windows. At the moment my plan is for it to be the first window that appears when they open the program, meaning that it will likely be asking about the program's own energy performance. Something like the following message, with two buttons:
Please choose the energy settings for this program.
[Better Energy Savings] [Better Performance]
Does anyone have experience here, or can you offer suggestions?
Now, I've done plenty of programming of experiments in python before (mostly using Tkinter), but I've never done anything deliberately designed to be so akin to native Windows. At the moment my plan is for it to be the first window that appears when they open the program, meaning that it will likely be asking about the program's own energy performance. Something like the following message, with two buttons:
Please choose the energy settings for this program.
[Better Energy Savings] [Better Performance]
Does anyone have experience here, or can you offer suggestions?
0
#2 Oct 26th, 2009
If you're looking for native-looking windows apps you'll want to go with wxPython. This is a Python class wrapper for the wx.widgets toolkit, which is cross-platform and extremely powerful.
There's a sticky in this forum with tons of examples of wx code. And here's where you can download the modules, as well as example code and find tutorials.
There's a sticky in this forum with tons of examples of wx code. And here's where you can download the modules, as well as example code and find tutorials.
![]() |
Similar Threads
- Desinging in C# window application. (C#)
- Help with wxpython program (Python)
- ask (C++)
- AJAX : Am i right with the concept? (JavaScript / DHTML / AJAX)
- making current window change to fullscreen, Ive looked everyhwhere and came here .... (HTML and CSS)
- Need comments on replacement browser for IE (Web Browsers)
- form to get e-mail and name --- for newsletter (HTML and CSS)
- blur (Graphics and Multimedia)
Other Threads in the Python Forum
- Previous Thread: Is this an OO program?
- Next Thread: Create a string with Hex values
| Thread Tools | Search this Thread |
accessdenied advanced application argv beginner change code command convert csv cursor def dictionary digital dynamic dynamically edit editing enter event examples excel file float format frange function google gui homework i/o import input jaunty java keyboard lapse line linux list lists loop microphone mouse movingimageswithpygame newb number numbers obexftp output parameters parsing path port prime programming projects py2exe pygame pygtk pyopengl python random recursion remote return reverse scrolledtext session simple skinning smtp sprite stderr string strings strip subprocess syntax table tennis terminal text thread threading time tkinter tlapse tuple tutorial ubuntu unicode unit urllib urllib2 variable voip web-scrape windows wxpython






