Re: drawline

2005-11-22 Thread Eugene Druker
Hi Ben, if I understood your questions properly, this code gives some answers (on XP): from Tkinter import * lines = [ [ (100, 200, 350, 200), LAST, "red",'' ], [ (100, 0, 100, 200), FIRST, "green", 'a' ], [ (100, 200, 300, 100), LAST, "purple", 'b' ], ] ClickMax = len(

Re: Tkinter or Python issue?

2005-10-18 Thread Eugene Druker
"Ron Provost" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [snip] > t.insert( Tk.END, sampleText ) > > t.tag_config( 'AB', font=tkFont.Font( family='ariel', size=24, > weight=tkFont.BOLD ) ) > t.tag_config( 'TBU', font=tkFont.Font( family='times', size=10, > weight=tkFont.BOLD, un

Re: tkFileDialog.askopenfilename filetypes problem

2005-07-13 Thread Eugene Druker
For me this: z = tkFileDialog.askopenfilename(title='Title', filetypes=[ ('AIFF Files','*.aiff'), ("TXT Files", "*.txt"), ], i

Re: Tough Scrolling question with Tkinter

2005-06-14 Thread Eugene Druker
Hi Saqib, AFAIU, you want to change the scrollregion, not the size. So try: def _b1PressEvt(event): x0,y0,x1,y1 = canvas.config('scrollregion')[4] print x0,y0,x1,y1 canvas.config(scrollregion=(int(x0),int(y0),int(x1)+100,int(y1))) First click will show nothing, because first change k

Re: Make Tkinter child window active

2005-06-08 Thread Eugene Druker
Try: > > Label(c, text="Child window").grid() c.focus_set() > root = Tk() "Svennglenn" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How do i make a child window "active" like the root window? > > from Tkinter import * > > def open_child(): > c = Toplevel(root) >