On 1/21/15 5:07 AM, MH wrote:
>
> is there another/newer way to confirm termination of axis and thus
> linuxcnc other than putting something in .axisrc ?

I think there's currently no way to get a confirmation dialog when the 
user clicks the window manager's "Close Window" button on the Axis window.

We inhibit (gray out) the File->Quit option while a program is running, 
but that doesn't prevent the WM Close Window signal from terminating Axis.


> I am using this code:
> def General_Halt():
>     text = "Do you really want to close linuxcnc?"
>     if not root_window.tk.call("nf_dialog", ".error", "Question", text,
> "warning", 1, "YES", "NO"):
>       root_window.destroy()
>
> root_window.protocol("WM_DELETE_WINDOW", General_Halt)

I like this.  Thanks for the patch!  What is your full name so i can 
credit you in the commit message?


-- 
Sebastian Kuzminsky

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to