Search Results

Showing results 1 to 40 of 77
Search took 0.01 seconds.
Search: Posts Made By: aot
Forum: Python 26 Days Ago
Replies: 1
Views: 143
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
Brilliant! I just need to know now if it can play sounds...?
Forum: Python May 19th, 2009
Replies: 9
Views: 502
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
Great, thanks Jeff! I will give PIL a try.
Forum: Python Apr 5th, 2008
Replies: 5
Views: 1,163
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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
Posted By aot
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...
Showing results 1 to 40 of 77

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC