python-list@python.org

2006-08-20 Thread david_wahler
I'll be out of the office until approximately August 20th. If you have any questions, please email [EMAIL PROTECTED] -- David Wahler -- http://mail.python.org/mailman/listinfo/python-list

tkinter prob

2006-08-20 Thread JyotiC
hi, i am making a GUI using Tkinter, I have a button and a checkbutton. i want the button to be enable when checkbutton is on and disble when the checkbutton is off. thanx -- http://mail.python.org/mailman/listinfo/python-list

Re: istep() addition to itertool? (Was: Re: Printing n elements per line in a list)

2006-08-20 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Justin Azoff wrote: > Rhamphoryncus wrote: > [snip interesting istep function] > >> Would anybody else find this useful? Maybe worth adding it to itertool? > > yeah, but why on earth did you make it so complicated? > > def istep(iterable, step): > a=[] > for x

Re: trouble using "\" as a string

2006-08-20 Thread Ant
> such as tempname="\"..it says that the line is single qouted. The others have addressed the escape issue I think. However it looks like you want the funtionality of the os.path module. For example: >>> import os.path as path >>> filename = "/home/ant/test.sh" >>> filename2 = r"c:\python24\scri

Re: tkinter prob

2006-08-20 Thread Fredrik Lundh
JyotiC wrote: > i am making a GUI using Tkinter, > I have a button and a checkbutton. > i want the button to be enable when checkbutton is on and disble when > the checkbutton is off. use the checkbutton's command option to install a callback that enables or disables the button. -- http://ma

Re: write eof without closing

2006-08-20 Thread Fredrik Lundh
Alex Martelli wrote: >> IIRC, ctrl-Z is not used _in_files_ to represent EOF. Only >> when text is being entered at the console. > > Easy to test, if you have Windows: > n='foo.txt' s='ba\r\n'+chr(26)+'bo\r\r' open(n,'wb').write(s) ss=open(n).read() ss > 'ba\n' > > As

Re: tkinter prob

2006-08-20 Thread JyotiC
i have tried it out but it's not working. this is the code from Tkinter import * class abc: def __init__(self,parent): #make container myparent self.myparent=parent self.myparent.geometry("500x200") #make the initial frame self.frame=Frame(self.myparen

Python and STL efficiency

2006-08-20 Thread Licheng Fang
Hi, I'm learning STL and I wrote some simple code to compare the efficiency of python and STL. //C++ #include #include #include #include #include using namespace std; int main(){ vector a; for (long int i=0; i<1 ; ++i){ a.push_back("What do you know?");

<    1   2