Message4400
2.5b3: "jframe_02.py" and "jframe_04.py" have problems when using None.
"jframe_03.py" is ok.
2.2.1: all of them are ok.
jframe_02.py:
=============
from javax.swing import JFrame
from javax.swing import WindowConstants
# EXCEPTION: locationRelativeTo=None
f = JFrame('Hello, World!',
defaultCloseOperation=WindowConstants.DISPOSE_ON_CLOSE, size=(300, 300),
locationRelativeTo=None)
# f = JFrame('Hello, World!',
defaultCloseOperation=WindowConstants.DISPOSE_ON_CLOSE, size=(300, 300))
f.setVisible(1)
jframe_03.py:
=============
from javax.swing import JFrame
from javax.swing import WindowConstants
f = JFrame('Hello, World!')
f.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE)
f.setSize(300, 300)
# NO PROBLEMS HERE
f.setLocationRelativeTo(None)
f.setVisible(1)
jframe_04.py:
=============
from javax.swing import JFrame
from javax.swing import WindowConstants
f = JFrame('Hello, World!')
f.defaultCloseOperation = WindowConstants.DISPOSE_ON_CLOSE
f.size = (300, 300)
# EXCEPTION on the next line!
f.locationRelativeTo = None
f.setVisible(1) |
|
Date |
User |
Action |
Args |
2009-03-31 07:47:21 | alv131 | set | recipients:
+ alv131 |
2009-03-31 07:47:21 | alv131 | set | messageid: <1238485641.42.0.76306519112.issue1296@psf.upfronthosting.co.za> |
2009-03-31 07:47:20 | alv131 | link | issue1296 messages |
2009-03-31 07:47:20 | alv131 | create | |
|