Skip to main content

Posts

Showing posts with the label Jython

Show a temporary window in SikuliX

I can't find documentation in SikuliX to show a window or dialog and hide/close it after configured time. Since SikuliX uses Jython behind the scenes and Jython can access Java easily then showing a simple Swing window should be straightforward. Sample code below demonstrates Alternative solution as proposed by Raiman Reference(s): Github https://github.com/haru-a8n/CodeSamples/blob/master/sikulix/ShowMessage.sikuli/ShowMessage.py Jython GUI Sample applications http://www.jython.org/jythonbook/en/1.0/GUIApplications.html Swing Sample applications in Jython https://wiki.python.org/jython/SwingExamples

"console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0" message when opening a PyDev console

When opening a PyDev console using Jython 2.7b3, I am getting the following error message. console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0 This does not show up in Jython 2.5. Note that this was already reported elsewhere, like: http://sourceforge.net/p/jython/mailman/message/32935457/ http://bugs.jython.org/issue2222%3E To workaround this issue, add  -Dpython.console.encoding=UTF-8 in PyDev configuration, see below for details.