16 |
|
|
17 |
__version__ = "$Revision$" |
__version__ = "$Revision$" |
18 |
|
|
19 |
from wxPython.wx import * |
import wx |
|
from wxPython import wx |
|
|
from wxPython.lib.layoutf import Layoutf |
|
20 |
|
|
21 |
class wxMultipleChoiceDialog(wx.wxDialog): |
class wxMultipleChoiceDialog(wx.Dialog): |
22 |
"""This is a copy of the class wxPython.lib.dialogs.wxMultipleChoiceDialog |
"""This is a copy of the class wxPython.lib.dialogs.wxMultipleChoiceDialog |
23 |
and fixes the bug that the style now is passed on (this is fixed |
and fixes the bug that the style now is passed on (this is fixed |
24 |
in version wxPython 2.4.1). |
in version wxPython 2.4.1). |
25 |
""" |
""" |
26 |
def __init__(self, parent, msg, title, lst, pos = wxDefaultPosition, |
def __init__(self, parent, msg, title, lst, pos = wx.DefaultPosition, |
27 |
size = (200,200), style = wxDEFAULT_DIALOG_STYLE): |
size = (200,200), style = wx.DEFAULT_DIALOG_STYLE): |
28 |
wxDialog.__init__(self, parent, -1, title, pos, size, style) |
wx.Dialog.__init__(self, parent, -1, title, pos, size, style) |
29 |
x, y = pos |
x, y = pos |
30 |
if x == -1 and y == -1: |
if x == -1 and y == -1: |
31 |
self.CenterOnScreen(wx.wxBOTH) |
self.CenterOnScreen(wx.wxBOTH) |