import
wx
class
FrameUI(wx.Frame):
def
__init__(
self
, parent, title):
super
(FrameUI,
self
).__init__(parent, title
=
title, size
=
(
300
,
200
))
self
.InitUI()
def
InitUI(
self
):
pnl
=
wx.Panel(
self
)
hlist
=
[
'Item One'
,
'Item Two'
]
vlist
=
[
'Item One'
,
'Item Two'
]
self
.sl
=
wx.StaticLine(pnl,
2
, pos
=
(
50
,
0
), size
=
(
1
,
250
),
style
=
wx.LI_VERTICAL)
print
(
self
.sl.GetDefaultSize())
self
.Centre()
self
.SetSize((
400
,
250
))
self
.Show(
True
)
ex
=
wx.App()
FrameUI(
None
,
'RadioButton and RadioBox'
)
ex.MainLoop()