Re: [Tkinter-discuss] different results from the same tcl script

2007-06-25 Thread Mohammad Tayseer
You have to call mainloop for any window to appear. I cannot remember the exact reason for this, but it was posted before on the mailing list Fabrizio Pollastri <[EMAIL PROTECTED]> wrote: Mohammad Tayseer wrote: > Finishing the program will close it, which will destroy the Tk objec

Re: [Tkinter-discuss] First timer using tkinter

2006-11-27 Thread Mohammad Tayseer
from Tkinter import * root = Tk() root.wm_attributes('-topmost', 1) works for Python 2.4 on WinXp - Access over 1 million songs - Yahoo! Music Unlimited.___ Tkinter-discuss mailing list Tkinter-discuss@python.org http:

Re: [Tkinter-discuss] Scroll a table, but not the first two rows?

2006-05-31 Thread Mohammad Tayseer
Why don't you separate the table from the header? The header should be *outside* the ScrolledFrame, so it's not scrolledChris Niekel <[EMAIL PROTECTED]> wrote: Hi,I'm trying to build a window that has a table with multiple columns. I'musing Pmw.ScrolledFrame now, creating the table with the.grid(ro

Re: [Tkinter-discuss] Framed

2006-04-03 Thread Mohammad Tayseer
Martin's code didn't work, at least on my machine (Win XP). I tried a little changeself.Frame2 = Pmw.ScrolledFrame(self)will remain as it is, but change the button instantiation toself.Button2 = Button(self.Frame2.interior())this can be found in Pmw docs. See "Extending Pmw megawidgets" at http://p

Re: [Tkinter-discuss] Tix: binding

2006-03-15 Thread Mohammad Tayseer
> >>> box.cancel(command = lambda a,b : a+b )> Traceback (most recent call last):> File "", line 1, in ?> box.cancel(command = lambda a,b : a+b )> AttributeError: _dummyButton instance has no __call__ methodyou should use box.cancel.config(command=my_callback) AFAIK Yahoo! Mail Use Photomail

Re: [Tkinter-discuss] Drawing waveform on a Canvas

2006-01-19 Thread Mohammad Tayseer
> Michael Lange <[EMAIL PROTECTED]> wrote: > On Wed, 18 Jan 2006 11:41:26 -0800 (PST)> Mohammad Tayseer <[EMAIL PROTECTED] style="font-style: italic;"> wrote:<[EMAIL PROTECTED] style="font-style: italic;">><[EMAIL PROTECTED] style="font-sty

Re: [Tkinter-discuss] Drawing waveform on a Canvas

2006-01-19 Thread Mohammad Tayseer
> Michael Lange <[EMAIL PROTECTED]> wrote: > On Wed, 18 Jan 2006 11:41:26 -0800 (PST)> Mohammad Tayseer <[EMAIL PROTECTED] style="font-style: italic;"> wrote:<[EMAIL PROTECTED] style="font-style: italic;">><[EMAIL PROTECTED] style="font-sty

Re: [Tkinter-discuss] Drawing waveform on a Canvas

2006-01-18 Thread Mohammad Tayseer
Michael Lange <[EMAIL PROTECTED]> wrote:> Hello list,>> I am trying to draw a graphical representation of a soundfile > (a.k.a. waveform) onto a Canvas,You have two problems1. Reading a sound file2. drawing the waveformI solved the 2nd problem only. This is a code that draws a random waveform.-

Re: [Tkinter-discuss] Pmw problem in cygwin with Tkinter

2006-01-14 Thread Mohammad Tayseer
> Fredrik Lundh wrote:> mohammad, can you please use a quoting approach that makes it> explicit what message you're replying to (including who wrote it),> and works also if people read your messages as plain text.I think this is clearer. Yahoo! Photos Ring in the New Year with Photo Calendars. A

Re: [Tkinter-discuss] Pmw problem in cygwin with Tkinter

2006-01-10 Thread Mohammad Tayseer
<[EMAIL PROTECTED]>you mean, implement the Tkinter app in windows, and use windowscommands wherever possible, only invoking cygwin where absolutelynecessary?not exactly. I meant:1. leave the *Pmw* version untouched2. leave the original application untouched3. don't use cygwin. instead, implement th

Re: [Tkinter-discuss] Pmw problem in cygwin with Tkinter

2006-01-09 Thread Mohammad Tayseer
hmmm, i would use another approach. I would reimplement all the underlying commands and leave the other parts untouched. you may find some commands similar (like cd) and you will implement only the non-existing commands (like ls) which, i think, won't be too many Yahoo! Photos Ring in the New Ye

Re: [Tkinter-discuss] Pmw problem in cygwin with Tkinter

2006-01-09 Thread Mohammad Tayseer
<[EMAIL PROTECTED]> and we don't have time or resources to port theapp to windows at this time. try to steer clear of Pmw and just use native Tkinterwidgets. No problem with any of them so far. i dont know why will you rewrite the Pmw part and not changing the console commands themselves. i rewrot

Re: [Tkinter-discuss] Tix and Pmw comparison

2006-01-05 Thread Mohammad Tayseer
I added the wiki page athttp://tkinter.unpythonic.net/wiki/TixVsPmwVsBWidgetsyour opinions are appreciated Yahoo! Photos Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.___ Tkinter-discuss mailing list Tkinter-discus

Re: [Tkinter-discuss] Tix and Pmw comparison

2005-12-28 Thread Mohammad Tayseer
> Who volunteers to transcribe this into the Wiki?well, i asked the question, so i have to do this Yahoo! Photos Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.___ Tkinter-discuss mailing list Tkinter-discuss@python.o

[Tkinter-discuss] Tix and Pmw comparison

2005-12-26 Thread Mohammad Tayseer
Dear friendsis there a comparison between Tix and Pmw? i couldn't find a comparison between these libraries. is there a comparison between them and bwidgets too? thanks in advance Yahoo! Photos Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.

Re: [Tkinter-discuss] xscrollbar

2005-11-18 Thread Mohammad Tayseer
Text widget wraps the text. the solution is to change the third line totext = Text(root, wrap='none', xscrollcommand=scrollbar.set)from Tkinter import *root = Tk()scrollbar = Scrollbar(root, orient=HORIZONTAL)scrollbar.pack(side=BOTTOM, fill=X)text = Text(root, xscrollcommand=scrollbar.set)for i in

Re: [Tkinter-discuss] GUI designer for Tkinter

2005-10-24 Thread Mohammad Tayseer
Hi Cam i'm using python on windows. i can help develop and test it on windows. thanks __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ Tkinter-discuss mailing list

Re: [Tkinter-discuss] GUI designer for Tkinter

2005-10-22 Thread Mohammad Tayseer
Hi Cam i will be glad to help you writing it. i tried to make one before, but it didn't find time to complete it. maybe i needed another one to work with :) __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo

[Tkinter-discuss] GUI designer for Tkinter

2005-10-21 Thread Mohammad Tayseer
dear friends does anyone know about a *free* gui designer for Tkinter? I found SpecTix, but its support for Python is not stable. thanks in advance __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___