From: Rob A. <ro...@us...> - 2002-05-20 15:45:32
|
(Cross-posting my reply to the Python Tutor list. -Rob) That hit the spot. Thanks much. Rob James Carroll wrote: > > Hey! one that I can help with! > > >>input:") >>> sshwing.JOptionPane.showMessageDialog( null, >>"Your input is >>inadequate.") >>Traceback (innermost last): >> File "<console>", line 1, in ? >>NameError: null >> > > In Jython, use None insteada of null. > > btw sshwing: excellent! > > so it would read > > >>>>sshwing.JOptionPane.showMessageDialog(None, "inadequate.") >>>> > > -Jim > > >>-----Original Message----- >>From: Rob Andrews [mailto:ro...@us...] >>Sent: Monday, May 20, 2002 11:31 AM >>To: jyt...@li... >>Subject: [Jython-users] question about showMessageDialog usage >> >> >>Please forgive the cheesiness of the following example. I was >>aiming for >>brevity more than impressiveness. >> >>I encounter errors along the following lines when I attempt to use >>showMessageDialog in Jython. I have tried to attack the >>problem from a >>number of different angles, and have about concluded that I must be >>missing some simple, fundamental truth about how this works in Jython. >> >> >>> import javax.swing as sshwing >> >>> moreInput = sshwing.JOptionPane.showInputDialog("More >> >> >>I will appreciate any illumination. >> >>Rob Andrews >> >> >> >>_______________________________________________________________ >>Hundreds of nodes, one monster rendering program. >>Now that's a super model! Visit http://clustering.foundries.sf.net/ >> >>_______________________________________________ >>Jython-users mailing list >>Jyt...@li... >>https://lists.sourceforge.net/lists/listinfo/jython-users >> >> > > _______________________________________________________________ > Hundreds of nodes, one monster rendering program. > Now that's a super model! Visit http://clustering.foundries.sf.net/ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |