[mcstas-users] Fix for Tk::wrap errors in mcgui
Peter Kjær Willendrup
pkwi at fysik.dtu.dk
Tue Feb 16 21:22:52 CET 2016
Dear mcstas-users,
If you ever encounter the below error from mcgui versions < 2.3 (forthcoming release),
Tk::Error###: This shouldn't happen at /usr/share/perl/5.18/Text/Wrap.pm line 84.
Tk callback for .toplevel
Text::Wrap::wrap at /usr/share/perl/5.18/Text/Wrap.pm line 84
main::run_dialog_create at /usr/local/bin/mcgui line 752
main::run_dialog at /usr/local/bin/mcgui line 824
main::my_system at /usr/local/bin/mcgui line 985
main::menu_run_simulation at /usr/local/bin/mcgui line 1320
main::__ANON__ at /usr/local/bin/mcgui line 1752
Tk callback for .frame1.button
Tk::__ANON__ at /usr/lib/perl5/Tk.pm line 251
Tk::Button::butUp at /usr/lib/perl5/Tk/Button.pm line 175
<ButtonRelease-1>
(command bound to event)
- then the fix is to replace the function run_dialog_create in your mcgui as described here:
http://www.mcstas.org/download/share/mcgui-2.2a_fix_wrapping_issue.txt.html
Best,
Peter
Peter Kjær Willendrup
Senior Research Engineer, Special Advisor
DTU Physics
Technical University of Denmark
[cid:image002.gif at 01CCCAF1.5E6331F0]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk<mailto:pkwi at fysik.dtu.dk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20160216/5bc6d8fe/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20160216/5bc6d8fe/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20160216/5bc6d8fe/attachment-0001.gif>
More information about the mcstas-users
mailing list