|
From: Thomas L. <ta...@gm...> - 2007-01-25 18:05:30
|
On 1/25/07, Jim Ramsay <i....@ji...> wrote: > Thomas Leonard wrote: > > On 1/11/07, Jim Ramsay <i....@ji...> wrote: > > > Here's another useful one, which allows you to clear the filename in > > > the filechooser: > > > > I've added that to the existing widget. If you can set something, you > > should be able to clear it too. > > > > (note: also needed to call update_widget() after clearing) > > I just took a look at the code in the svn version of rox-lib2, and I > didn't see this... have you not yet checked it in? r4901 | tal197 | 2007-01-12 18:14:34 +0000 (Fri, 12 Jan 2007) | 2 lines Changed paths: M /trunk/rox-lib/ROX-Lib2/python/rox/OptionsBox.py Added Clear button to filename options (Jim Ramsay and Thomas Leonard). > I have a new version anyway that adds the clear box *and* it will revert to being a > textbox if the GTK version is <2.6. > > I also wasn't sure about what you meant by calling update_widget() - > I'm using the clear button callback to change the value of the > filechooser widget directly, which will update itself and call its own > 'selection-changed' callback which will update the actual 'option' > value. It sounds like that should work. I can't remember exactly what the problem was now. -- Dr Thomas Leonard http://rox.sourceforge.net GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1 |