From: <je...@un...> - 2006-02-22 02:47:20
|
On Wed, Feb 22, 2006 at 10:34:21AM +0800, Colin Wildsmith wrote: > I have created a function in axis.py which I have linked the button and > the short cut keys to: > class TclCommands(nf.TclCommands): > .... > def edit_file(event=None): > root_window.command = pane_top + ".tabs raise mdi" > > def new_file(*event): > widgets.mdi_history.delete(1.0, END) > root_window.command = pane_top + ".tabs raise mdi" > > I do not get any error messages on the terminal from these commands > only: emcTaskIssueCommand() > > But the mdi pane does not raise, what am I doing wrong? I don't immediately see the reason it wouldn't work. One thing you could do to troubleshoot is reverse the order of the lines, or add a line like print "at the top of new_file()" as the first line of def new_file. By the way, the style of axis.py is inconsistent. These are both ways of saying "maybe there will be an event parameter, maybe there won't be, but I don't care": > def edit_file(event=None): > def new_file(*event): Jeff |