Re: Tkinter from Vis. BASIC

2005-11-19 Thread Terrance N. Phillip
[EMAIL PROTECTED] wrote: >>I want to do the same thing in Python/Tkinter: >> >> # Wait for network to recognize the workstation: >> while os.system("slist") != 0: >> self.notify["fg"] = randcolor() >> # how do I refresh label l3 at this point? >>

Tkinter from Vis. BASIC

2005-11-19 Thread Terrance N. Phillip
In VB, an easy way I indicate progress is something like do while lblNotify.foreground = randomcolor lblNotify.refresh <--- loop I want to do the same thing in Python/Tkinter: # Wait for network to recognize the workstat

Re: Using Which Version of Linux

2005-11-05 Thread Terrance N. Phillip
Jeffrey Schwab wrote: > > I might get lambasted for suggesting this, but try Slackware. It will > let you do a very minimal installation, which means there's less stuff > that can go wrong. It also has nice, beginner-friendly FAQs to help you > get started. Like the other distros already su

Re: Parallel arithmetic?

2005-08-04 Thread Terrance N. Phillip
Thank-you very much for all the excellent replies. I'm thinking of using this to determine if a sequence is a "run" (as in a card game). If I've got a sorted hand [3, 4, 5, 6, 7], then I know I've got a 5-card run because [4, 5, 6, 7] - [3, 4, 5, 6] == [1, 1, 1, 1]. I want to avoid something li

Parallel arithmetic?

2005-08-04 Thread Terrance N. Phillip
Given a and b, two equal length lists of integers, I want c to be [a1-b1, a2-b2, ... , an-bn]. I can do something like: c = [0] * len(a) for ndx, item in enumerate(a): c[ndx] = item - b[ndx] But I'm wondering if there's a better way, perhaps that avoids a loop? Nick. (I seem to recall fro

Re: Problem loading a file of words

2005-07-24 Thread Terrance N. Phillip
Kevin, I'm pretty new to Python too. I'm not sure why you're seeing this problem... is it possible that this is an "out-by-one" error? Is zymotechnics the *last* word in dictionary.txt? Try this slightly simplified version of your program and see if you have the same problem def sor

Re: System Independent Wallpaper Changer

2005-07-06 Thread Terrance N. Phillip
Toby Dickenson wrote: > On Wednesday 06 July 2005 01:12, Terrance N. Phillip wrote: > > >>I've done some searching, and can't seem to find a programatic way of >>getting *** that to happen. > > > http://www.google.com/search?q=setwallpaper+dcop > &

System Independent Wallpaper Changer

2005-07-05 Thread Terrance N. Phillip
This is what I've got... the code should work on a typical Windows system, I think... import os import random import time # I'm not sure what to expect for Win98, WinME, etc. I've # only tried it with xp... if os.name in ['nt', 'win98', 'me']: osW