Tkinter - Force toplevel window to stay on top of Tk() window

2007-06-08 Thread rahulnag22
Hi, I have a Tk() window "base_win = Tk()" with multiple frames on it having a combination of widgets. If I click on say a button widget which launches a new top level window "new_win = TopLevel()", I was looking for a way for this "new_win" to always stay on top of "base_win" till I close "new_win

Tkinter - resize tkMessageBox

2007-06-04 Thread rahulnag22
Hi, Is there a way to resize the width of the "tkMessageBox.askyesno" dialog box, so that the text does not wrap to the next line. Thanks Rahul -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter Listbox - Different Text colors in one listbox

2007-05-30 Thread rahulnag22
On May 30, 6:04 am, [EMAIL PROTECTED] wrote: > On May 29, 2:02 pm, [EMAIL PROTECTED] wrote: > > > Hi, > > Is it possible to havedifferentitems in alistboxindifferentcolors? Or is it > > justonecolor for all items in alistbox? > > Thanks > > Rahul > > from Tkinter import * > > root = Tk() > l = Lis

Tkinter Listbox - Different Text colors in one listbox

2007-05-29 Thread rahulnag22
Hi, Is it possible to have different items in a listbox in different colors? Or is it just one color for all items in a listbox? Thanks Rahul -- http://mail.python.org/mailman/listinfo/python-list

Listbox - Active index

2007-05-25 Thread rahulnag22
Hi, I am using a listbox in selectmode = MULTIPLE, I can get the current selected item in the listbox from index = "ACTIVE" , but is there a way to convert this "ACTIVE" to get the current selection index as a number. For multiple selectmode listboxes it returns a tuple of selected indexes, so I w

Re: tkFileDialog.askopenfilename()

2007-05-17 Thread rahulnag22
On May 16, 6:21 am, "Hamilton, William " <[EMAIL PROTECTED]> wrote: > > From: [EMAIL PROTECTED] > > > Hi, > > When I call tkFileDialog.askopenfilename() , the dialog box opens with > > the current directory as the default directory. Is it possible to open > > the dialog box with a directory other t

tkFileDialog.askopenfilename()

2007-05-15 Thread rahulnag22
Hi, When I call tkFileDialog.askopenfilename() , the dialog box opens with the current directory as the default directory. Is it possible to open the dialog box with a directory other than the current directory. Can we pass in a user defined starting directory. Thanks Rahul -- http://mail.python

Re: tkinter button state = DISABLED

2007-05-14 Thread rahulnag22
On May 14, 12:01 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I have created a button widget with a button click binding. The button > > initially has a state=disabled. I can see the greyed out version of > > the button in the GUI. But If I click on the button it still

tkinter button state = DISABLED

2007-05-14 Thread rahulnag22
I have created a button widget with a button click binding. The button initially has a state=disabled. I can see the greyed out version of the button in the GUI. But If I click on the button it still invokes the callback/binding function. Any suggestions as to why the callback is being invoked eve

Re: tkinter - Screen Resolution

2007-05-10 Thread rahulnag22
On May 10, 1:29 am, "Eric Brunel" <[EMAIL PROTECTED]> wrote: > On Wed, 09 May 2007 18:37:32 +0200, <[EMAIL PROTECTED]> wrote: > > Hi, > > I have developed a GUI usingtkinter(grid geometory manager). > > The structure is a top frame containing multiple subframes. Each > > subframe has a combination

Re: tkinter get widget option value

2007-05-09 Thread rahulnag22
On May 8, 6:51 pm, James Stroud <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > If I have abuttonwidget > > > w =Button(root, text = "Button", state = 'disabled') > > > How can I get the value of option 'state' from the widget 'w'. > > I want something like -- > > > print w.state

Re: tkinter - Screen Resolution

2007-05-09 Thread rahulnag22
On May 9, 10:37 am, [EMAIL PROTECTED] wrote: > Hi, > I have developed a GUI using tkinter (grid geometory manager). > The structure is a top frame containing multiple subframes. Each > subframe has a combination of widgets like(Entry, label, > button,listboxes). The subframes are placed with a padx

tkinter - Screen Resolution

2007-05-09 Thread rahulnag22
Hi, I have developed a GUI using tkinter (grid geometory manager). The structure is a top frame containing multiple subframes. Each subframe has a combination of widgets like(Entry, label, button,listboxes). The subframes are placed with a padx and pady offset with regards to the other subframes. A

Re: tkinter get widget option value

2007-05-08 Thread rahulnag22
On May 8, 2:15 pm, Rob Williscroft <[EMAIL PROTECTED]> wrote: > wrote innews:[EMAIL PROTECTED] > comp.lang.python: > > > If I have a button widget > > > w = Button(root, text = "Button", state = 'disabled') > > > How can I get the value of option 'state' from the widget 'w'. > > I want something l

tkinter get widget option value

2007-05-08 Thread rahulnag22
Hi, If I have a button widget w = Button(root, text = "Button", state = 'disabled') How can I get the value of option 'state' from the widget 'w'. I want something like -- print w.state >> to print out >> 'disabled' Thanks Rahul -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter - label widget text selection

2007-05-08 Thread rahulnag22
On May 6, 2:24 pm, Rob Wolfe <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] writes: > > Hi, > > I guess this is a very trivial question -- > > I am using a label widget to display text (black font in a white > > background color). I am trying to use my mouse to scroll over the > > displayed text to

tkinter - label widget text selection

2007-05-06 Thread rahulnag22
Hi, I guess this is a very trivial question -- I am using a label widget to display text (black font in a white background color). I am trying to use my mouse to scroll over the displayed text to select it, but tkinter does not allow me to do it. Is there a method/option to do this. Thanks Rahul -

Re: tkinter listboxes

2007-05-04 Thread rahulnag22
On May 4, 1:55 am, "Eric Brunel" <[EMAIL PROTECTED]> wrote: > On Fri, 04 May 2007 05:26:56 +0200, <[EMAIL PROTECTED]> wrote: > > I will give a simplified example of the problem at hand -- > > > I have a case in which I have two listboxes - listbox1 and listbox2, > > if I click on an item in listbox

tkinter listboxes

2007-05-03 Thread rahulnag22
I will give a simplified example of the problem at hand -- I have a case in which I have two listboxes - listbox1 and listbox2, if I click on an item in listbox1 the item gets highlighted as expected. Now if I click on an item in listbox2 the selected item in listbox1 loses its highlight. My quest