[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?
>>
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
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
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
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
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
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
>
&
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