Hi, Just calling tkMessagebox like that causes a Tcl error which confuses PyMOL, causing the crash. Try this code instead:
# begin Python block python import tkMessageBox tkMessageBox.showinfo("title", "msg") # end python block of code python end This wraps the code as one block and sends it to the Python interpreter. Cheers, -- Jason On Mon, Jan 24, 2011 at 5:11 PM, rv...@libero.it <rv...@libero.it> wrote: > Hi to all, > I need to open a message box dialog inside a pyMOL plug-in. > > When I try the code: > > import tkMessageBox > tkMessageBox.showinfo(‘title’, ‘msg’) > > pyMOL crashes (the window doesn’t appear and pyMOL blocks). > > I am just entering pyMOL and python. I never used Tkinter before. > > Could anyone help me? > Thanks > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) > Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users > Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net -- Jason Vertrees, PhD PyMOL Product Manager Schrodinger, LLC (e) jason.vertr...@schrodinger.com (o) +1 (603) 374-7120 ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net