Forum: Python 26 Days Ago |
| Replies: 1 Views: 143 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... |
Forum: Python Jun 3rd, 2009 |
| Replies: 6 Views: 302 woooee, I don't think he/she's concerned with having unique stat rolls (at least that's not the case in most d20 games).
Horia.Muntean, I think your problem is that you have too many functions.... |
Forum: Python Jun 2nd, 2009 |
| Replies: 6 Views: 480 No. Sorry to be unclear. The program will run with the frame maximized (to full screen). The images (etc.) need to appear in the dead center of the frame, rather than up near the top of the frame.... |
Forum: Python Jun 1st, 2009 |
| Replies: 6 Views: 480 Thank you! That helps me align the radio buttons horizontally. But what I was really looking for was a way to align the whole set of buttons *vertically*. I.e. they should all be right in the middle... |
Forum: Python Jun 1st, 2009 |
| Replies: 6 Views: 480 So far the move to wxPython has been going fairly smoothly. However, it's crucial that I be able to display items in the center of the screen (images, buttons, and radioboxes). I read about... |
Forum: Python Jun 1st, 2009 |
| Replies: 6 Views: 302 The easiest way to do this is to use python's inbuilt random library, with the randint function. This function takes two integers, which define the range between which you want to get a random... |
Forum: Python May 29th, 2009 |
| Replies: 4 Views: 504 Hmm, I don't think I want either of those things. I want to be able to tell the program to move the mouse cursor to position x, y. |
Forum: Python May 28th, 2009 |
| Replies: 4 Views: 504 I've realized that it would be very helpful to me to SET the mouse cursor to a particular location. Having done the usual internet searches, I can't seem to find anything on how to do it. Any ideas?... |
Forum: Python May 22nd, 2009 |
| Replies: 6 Views: 276 Ah yes. Technically they record it in analog and convert to digital, so she could theoretically provide either format. Although I don't know the specific file type that she uses, I can find out. At... |
Forum: Python May 22nd, 2009 |
| Replies: 9 Views: 502 I have to say, I am really impressed. Somehow when I was first looking at wxPython ages ago, I must have downloaded the worst tutorial ever, because it seemed so obtuse and useless for my needs --... |
Forum: Python May 22nd, 2009 |
| Replies: 8 Views: 375 Here's how I write to a file:
import tempfile
# The path for storing any files with randomly generated (temp) names.
path = 'data'
tempfile.tempdir = path
# Generates a random filename... |
Forum: Python May 22nd, 2009 |
| Replies: 6 Views: 276 So, as a scientist, I have plenty of geeky friends... and one of them is interested in creating a sound file from the brain waves she records. Essentially, she has a brain wave, and wants to feed it... |
Forum: Python May 20th, 2009 |
| Replies: 9 Views: 502 Brilliant! I just need to know now if it can play sounds...? |
Forum: Python May 19th, 2009 |
| Replies: 9 Views: 502 Wow, thanks! You guys are great!
Now I just need to know if it can play sounds, and if the images can be displayed for a given duration? Tkinter has the after method for dealing with this. For... |
Forum: Python May 19th, 2009 |
| Replies: 9 Views: 502 Okay, so I'm thinking of taking the plunge into wxPython. But it's especially important to me to know if wxPython can do the following things easily and well:
1) Display a vertical array of radio... |
Forum: Python May 16th, 2009 |
| Replies: 3 Views: 444 Hmm, unfortunately when I tried wxPython I just couldn't get a handle on it. I'd love to work through another tutorial and figure it out, but yeah, unfortunately this whole program is already written... |
Forum: Python May 15th, 2009 |
| Replies: 3 Views: 444 I have a nice little Tkinter program but need to make the mouse cursor invisible for parts of it. I have seen ways to make the cursor change to other images, but I need it to actually be invisible.... |
Forum: Python Oct 23rd, 2008 |
| Replies: 4 Views: 535 Ahh, also, his code only collects the mouse coordinates on a button click. I need to be able to query for them WHILE the person is holding down a button -- so the program has to be able to do it on... |
Forum: Python Oct 23rd, 2008 |
| Replies: 4 Views: 535 Ahh, thanks!
I was hoping to incorporate this functionality into Tkinter though. Is this possible too? |
Forum: Python Oct 23rd, 2008 |
| Replies: 4 Views: 535 I'd really like to be able to ask my program "where is the mouse pointer?" at any given time.
Ideally I'll want people to click and hold a button, which will cause a stream of events to occur,... |
Forum: Python Sep 25th, 2008 |
| Replies: 9 Views: 1,794 It was just a regular dictionary.
I pickled the new one on a Windows machine, the old one on a Mac. Tried to unpickle both on a Mac.
Note: I just managed to try the new one on a Windows... |
Forum: Python Sep 25th, 2008 |
| Replies: 9 Views: 1,794 I'm having trouble unpickling a file -- it gives me ValueError: insecure string pickle. The trouble is, it is nearly identical to another file that I was able to unpickle just fine. For the life of... |
Forum: Python Apr 6th, 2008 |
| Replies: 10 Views: 1,284 Thanks sneekula. I tried the code, but I still get an error:
ImportError: The _imaging C module is not installed
:( |
Forum: Python Apr 6th, 2008 |
| Replies: 10 Views: 1,284 I am using Mac OSX actually. I'm pretty sure I downloaded the right version -- it was the only one that said "all platforms" instead of "Windows only."
In the README it didn't give any options... |
Forum: Python Apr 6th, 2008 |
| Replies: 10 Views: 1,284 Hey, so this is what I get when I try PIL:
AttributeError: 'module' object has no attribute 'Image'
Sigh. So it looks like my install didn't go well (which I knew since it gave me an error --... |
Forum: Python Apr 5th, 2008 |
| Replies: 10 Views: 1,284 Great, thanks Jeff! I will give PIL a try. |
Forum: Python Apr 5th, 2008 |
| Replies: 5 Views: 1,163 Wow, thanks guys. That looks really helpful, sneekula.
Vegaseat -- unfortunately I use Macs. I do have Fusion and whatnot but would prefer to avoid Windows applications where possible. If... |
Forum: Python Apr 4th, 2008 |
| Replies: 5 Views: 1,163 I've been using Eclipse as my IDE for python programming, mostly because it's free. However, as far as I can tell, its debugger is not that great. All I ever get are notices of what line the error... |
Forum: Python Apr 4th, 2008 |
| Replies: 10 Views: 1,284 I've been trying to get some .JPGs to show up in Tkinter but have had no luck so far. Up until now I was just using PhotoImage, which takes .GIFs, but it would be nice if I could expand and use other... |
Forum: Python Mar 24th, 2008 |
| Replies: 3 Views: 842 Heh... easier than just using radio buttons? Now there's the question.
But thanks. I'll have a look at the widget coding and see if I can get my head around it. |
Forum: Python Mar 24th, 2008 |
| Replies: 3 Views: 842 I'd like to be able to make a slider widget without the knob that users can click and drag -- that is, I want the user to simply click somewhere on an empty slider and *then* have the knob appear... |
Forum: Python Mar 21st, 2008 |
| Replies: 2 Views: 543 I was wondering if it's possible to show videos via a python GUI -- preferably quicktime videos, but any format would be a start.
If it's not possible to play them from within the GUI, is it... |
Forum: Python Feb 18th, 2008 |
| Replies: 1 Views: 649 You could do this:
while True:
now = time.time()
print now
time.sleep(10)
The main problem with this approach is that the program can't do anything else during the sleeping... |
Forum: Python Jan 31st, 2008 |
| Replies: 1 Views: 673 I've just downloaded and installed Vision Egg, a library built for python that displays various common scientific stimuli. While I was able to install it according to their specifications and get it... |
Forum: Python Nov 30th, 2007 |
| Replies: 5 Views: 1,081 Yeah, I guess I've been avoiding that a bit since I've been hoping someone will know of a way to do it without resorting to learning Javascript... oh well, nothing like learning a new language, eh? |
Forum: Python Nov 29th, 2007 |
| Replies: 5 Views: 1,081 Can python programs with GUIs (such as Tkinter) be embedded into web pages?
I have looked into CGI programming before, but despite a search, I have found no books relating how to do this with... |
Forum: Python Nov 29th, 2007 |
| Replies: 2 Views: 1,132 Oooh, wow. I honestly didn't expect to get an answer in the positive here. Thanks, I'll try them out! |
Forum: Python Nov 24th, 2007 |
| Replies: 2 Views: 1,132 I'd like a program that reads through one or more weather web pages and records information from them on a daily (or even hourly) basis. Is this kind of thing possible at all to create with python?
... |
Forum: Python Jul 13th, 2007 |
| Replies: 7 Views: 19,854 I just wanted to write to say thank you to everybody who told me to look up threading... I have finally gotten around to it, and it solves my problem nicely!
You're all great! |
Forum: Python Jun 28th, 2007 |
| Replies: 7 Views: 19,854 Ah ha, but I want it to continue to check the something throughout the program -- it should never stop checking! Meanwhile it should print 'hello' just after it begins to check.
Basically what is... |