Re: PyTk cascaded radiobuttons, howto?

2015-12-09 Thread nickgeovanis
This is of course using tkinter from python, PyTk is a misnomer. Python 3.4.2 wit tcl/tk 8.5 under CentOS 7. -- https://mail.python.org/mailman/listinfo/python-list

PyTk cascaded radiobuttons, howto?

2015-12-09 Thread nickgeovanis
Using python 3.4.2. Tcl/tk example here is from /usr/share/tk8.5/demos/widget and .../menu.tcl. The way tcl/tk adds cascaded radiobuttons to a menu is like this: set m $w.menu.cascade $w.menu add cascade -label "Cascades" -menu $m -underline 0 $m add cascade -label "Radio buttons" -menu $w.men

Re: tkinter resize question

2015-07-17 Thread nickgeovanis
On Friday, July 17, 2015 at 5:55:19 PM UTC-5, Terry Reedy wrote: > On 7/17/2015 2:53 PM, nickgeova...@gmail.com wrote: > > Resizing a tkinter window which contains a frame which contains a > > button widget, will not change the current size of the window, frame > > or button as recorded in their he

Re: tkinter resize question

2015-07-17 Thread nickgeovanis
On Friday, July 17, 2015 at 2:52:56 PM UTC-5, Russell Owen wrote: > On 7/17/15 12:17 PM, nickgeova...@gmail.com wrote: > > On Friday, July 17, 2015 at 1:53:19 PM UTC-5, nickge...@gmail.com wrote: > >> Resizing a tkinter window which contains a frame which contains a button > >> widget, will not ch

Re: tkinter resize question

2015-07-17 Thread nickgeovanis
On Friday, July 17, 2015 at 1:53:19 PM UTC-5, nickge...@gmail.com wrote: > Resizing a tkinter window which contains a frame which contains a button > widget, will not change the current size of the window, frame or button as > recorded in their height and width attributes (at least not if they ar

tkinter resize question

2015-07-17 Thread nickgeovanis
Resizing a tkinter window which contains a frame which contains a button widget, will not change the current size of the window, frame or button as recorded in their height and width attributes (at least not if they are resizable). What is the correct way to detect their current size? -- https:

Re: beginners choice: wx or tk?

2015-07-11 Thread nickgeovanis
I've recently been facing the same question but with a new (probably simpler) app than your own. I've decided to re-implement what I have in tk, replacing GTK in the python code. I am no expert in either but I find tk to be more coherent at the API level and better documented. However Windows an

Re: pygtk2 and colors

2015-07-10 Thread nickgeovanis
I may be phrasing this question improperly, but...If I need a canvas or canvas-like object, does GTK3/pygobject provide one? Or only GTK2/PyGTK? The answer seems to be "only GTK2/PyGTK" but the discussion I find online doesn't seem to have a clear answer. -- https://mail.python.org/mailman/lis

Re: pygtk2 and colors

2015-07-07 Thread nickgeovanis
On Tuesday, July 7, 2015 at 12:58:12 PM UTC-5, Chris Angelico wrote: > > Part of your confusion may be because "background" isn't necessarily > what you think it is. Indeed. Yet "foreground" _is_ what I think it is :-) I would argue that we have here a clumsy intrusion of OO inheritance into a

Re: pygtk2 and colors

2015-07-07 Thread nickgeovanis
On Tuesday, July 7, 2015 at 11:54:21 AM UTC-5, Cousin Stanley wrote: > You might try > > self.set_rgb_fg_color( fg ) Well thanks, that works. Yet set_rgb_bg_color() does not. And I notice that the example at the link you sent doesn't set the background color either. Do I have a col

pygtk2 and colors

2015-07-07 Thread nickgeovanis
Morning- With python 2.7.5, pygtk 2.24, gtk 2.24: The following snippet successfully sets the line_width but not the foreground color, and I can't figure-out why. The color human-name and the result returned by gtk.gdk.color_parse are correct. Clues? Thanks. self.gc.set_line_attributes(myclass.b