/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/multiplechoicedialog.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/multiplechoicedialog.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/thuban/Thuban/UI/multiplechoicedialog.py revision 1154 by jan, Thu Jun 12 12:14:19 2003 UTC branches/WIP-pyshapelib-bramz/Thuban/UI/multiplechoicedialog.py revision 2734 by bramz, Thu Mar 1 12:42:59 2007 UTC
# Line 1  Line 1 
1  # Copyright (c) 2003 by Intevation GmbH  # Copyright (c) 2003, 2004 by Intevation GmbH
2  # Authors:  # Authors:
3  # Jan-Oliver Wagner <[email protected]>  # Jan-Oliver Wagner <[email protected]>
4  #  #
# Line 16  of the wxPython Library be used directly Line 16  of the wxPython Library be used directly
16    
17  __version__ = "$Revision$"  __version__ = "$Revision$"
18    
19  from wxPython.wx import *  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)

Legend:
Removed from v.1154  
changed lines
  Added in v.2734

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26