From: Colin W. <cwi...@ar...> - 2006-02-21 04:30:20
|
Hello all, This email is directed to Jeff Epler, however any help from other python gurus is appreciated. =20 I have been modifying the Axis gui to suit my PTA (Plasma Transferred Arc) application which I want to use for hardfacing, hence my previous posts about weaving. =20 One of the changes that I have been trying to achieve is using the history text widget on the code entry tab as a code editor instead of changing to a text editor for small modifications. =20 *Objective Create a function 'edit_file', which is called by a button widget and a short cut key. The 'edit_file' function will open up the mdi tab and place a cursor in the text box. =20 *Problem (Im new to python please be kind :-)) I am having trouble raising the tabs from within the edit_file function which I have created in 'axis.py'. I can raise the tab via the short cut key using: =20 root_window.bind("<Control-e>", pane_top + ".tabs raise mdi") =20 However I can not get the tab to raise by pressing the button with the mouse unless I also click on the tab. How do I command the tab to raise from within the 'edit_file' function? I have tried this 'widgets.mdi_history.tabs raise mdi' but it gives me an error pointing to the 'raise'. =20 I would also like to use this functionality for a new_file function also, where the tab raises and the text widget is cleared. Eg more than one action for an event. =20 Best Regards Colin Wildsmith |