From: Greg M. <gr...@in...> - 2009-04-20 13:10:04
|
Hi Charles, I suggest that one way to solve this kind of problem is to take a copy of your code and gradually reduce the size of the code until you get the smallest piece of code that still displays the issue. Sort of like a binary chop. At this stage one of two things can happen: first, you might find that there is an obvious bug in your code that you can fix; second, you can post the code to a forum like this for others to run and try to debug for you. It may turn out to be a bug in your code or it may be an undiscovered bug in Pmw/Tkinter/Tcl. Just giving us the traceback makes it nearly impossible for us to see where the problem might be. Greg On Fri 17 Apr 2009 at 05:01:13PM -0700, Charles ???????? Doutriaux wrote: > Since I'm using Python 2.6.1 I get: > > <class '_tkinter.TclError'> Exception in Tk callback > Function: <bound method ComboBox._dropdownBtnRelease of > <_Pmw.Pmw_1_3.lib.PmwComboBox.ComboBox instance at 0x20b3238>> (type: > <type 'instanc > emethod'>) > Args: (<Tkinter.Event instance at 0x3a78dc8>,) > Event type: ButtonRelease (type num: 5) > Traceback (innermost last): > File "/lgm/cdat/latest/lib/python2.6/site-packages/Pmw/Pmw_1_3/lib/ > PmwBase.py", line 1747, in __call__ > return apply(self.func, args) > File "/lgm/cdat/latest/lib/python2.6/site-packages/Pmw/Pmw_1_3/lib/ > PmwComboBox.py", line 344, in _dropdownBtnRelease > self._selectCmd() > File "/lgm/cdat/latest/lib/python2.6/site-packages/Pmw/Pmw_1_3/lib/ > PmwComboBox.py", line 276, in _selectCmd > return cmd(item) > File "/lgm/cdat/latest/lib/python2.6/site-packages/browser/ > gui_control.py", line 307, in __call__ > return apply(self.func, args, kw) > File "/lgm/cdat/latest/lib/python2.6/site-packages/browser/ > gui_select_variable.py", line 685, in evt_enter_variable > gui_functions._srl_var_dim1_to_ndim( parent ) > File "/lgm/cdat/latest/lib/python2.6/site-packages/browser/ > gui_functions.py", line 920, in _srl_var_dim1_to_ndim > parent.panelDM.dim[i > +multi_dim_found].opt.setitems(gui_control.dimchlst2) > File "/lgm/cdat/latest/lib/python2.6/site-packages/Pmw/Pmw_1_3/lib/ > PmwOptionMenu.py", line 67, in setitems > self._menu.delete(0, 'end') > File "/lgm/cdat/latest/lib/python2.6/lib-tk/Tkinter.py", line 2675, > in delete > self.deletecommand(c) > File "/lgm/cdat/latest/lib/python2.6/lib-tk/Tkinter.py", line 358, > in deletecommand > self.tk.deletecommand(name) > <class '_tkinter.TclError'>: can't delete Tcl command > > ================================================ > Event contents: > char: ?? > delta: 0 > height: ?? > keycode: ?? > keysym: ?? > keysym_num: ?? > num: 1 > send_event: False > serial: 6175 > state: 256 > time: -1234305764 > type: 5 > widget: . > 46328128.42874760.46287808.34287904.34288864.34289144.34291504.34291624 > width: ?? > x: 397 > x_root: 477 > y: 21 > y_root: 200 > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Pmw-general mailing list > Pmw...@li... > https://lists.sourceforge.net/lists/listinfo/pmw-general > -- Greg McFarlane "All that really matters in life are the people you love" |