From: James C. <ji...@mi...> - 2002-05-20 19:36:01
|
> http://uselesspython.com/Jython_Swing_Basics.html Nice Stuff Rob! Seldom are examples so palatable. my favorite similar page on the web is: http://www.oreilly.com/catalog/jythoness/chapter/ch01.html and the less fun, but essential: http://www.onlamp.com/lpt/a//python/2002/04/11/jythontips.html I have a few little tricks that I'd like to contribute... like: import java def copy(text): c =3D java.awt.Toolkit.getDefaultToolkit().getSystemClipboard() c.setContents(java.awt.datatransfer.StringSelection(text), None) =20 which lets you copy anything to the clipboard from Jython! >>> copy("this is now on the clipboard") I use this to generate GUIDs and other things I wouldn't want to type: >>> copy(mylib.makeGUID()) Later, -Jim |