[Tutor] Re: [Jython-users] question about showMessageDialog usage
Rob Andrews
rob@uselesspython.com
Mon, 20 May 2002 10:52:19 -0500
(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:rob@uselesspython.com]
>>Sent: Monday, May 20, 2002 11:31 AM
>>To: jython-users@lists.sourceforge.net
>>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
>>Jython-users@lists.sourceforge.net
>>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
> Jython-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jython-users
>
>