1414#
1515##############################################################################
1616
17- # generated by wxGlade 0.6 on Mon Oct 15 14:14:18 2007
17+ # generated by wxGlade 0.9.3 on Fri Jul 19 16:00:05 2019
1818
1919import wx
2020from diffpy .pdfgui .gui .wxExtensions .validators import TextValidator , FLOAT_ONLY
2525class BondLengthDialog (wx .Dialog ):
2626 def __init__ (self , * args , ** kwds ):
2727 # begin wxGlade: BondLengthDialog.__init__
28- kwds ["style" ] = wx .DEFAULT_DIALOG_STYLE
28+ kwds ["style" ] = kwds . get ( "style" , 0 ) | wx .DEFAULT_DIALOG_STYLE
2929 wx .Dialog .__init__ (self , * args , ** kwds )
30- self .sizer_2_staticbox = wx .StaticBox (self , - 1 , "" )
31- self .instructionsLabel = wx .StaticText (self , - 1 , "Enter the indices of two atoms." )
32- self .indicesLabel = wx .StaticText (self , - 1 , "Atom Indices" )
33- self .aSpinCtrl = wx .SpinCtrl (self , - 1 , "" , min = 0 , max = 100 )
34- self .bSpinCtrl = wx .SpinCtrl (self , - 1 , "" , min = 0 , max = 100 )
35- self .static_line_2 = wx .StaticLine (self , - 1 )
36- self .instructionsLabel2 = wx .StaticText (self , - 1 , "Or enter the elemental symbols of two atoms and\n the range over which to calculate the bond lengths." )
37- self .elementLabel = wx .StaticText (self , - 1 , "Elements" )
38- self .aComboBox = wx .ComboBox (self , - 1 , choices = [], style = wx .CB_DROPDOWN )
39- self .bComboBox = wx .ComboBox (self , - 1 , choices = [], style = wx .CB_DROPDOWN )
40- self .rangeLabel = wx .StaticText (self , - 1 , "Range" )
41- self .lbTextCtrl = wx .TextCtrl (self , - 1 , "" )
42- self .toLabel = wx .StaticText (self , - 1 , "to" )
43- self .ubTextCtrl = wx .TextCtrl (self , - 1 , "" )
44- self .static_line_1 = wx .StaticLine (self , - 1 )
30+ self .instructionsLabel = wx .StaticText (self , wx .ID_ANY , "Enter the indices of two atoms." )
31+ self .indicesLabel = wx .StaticText (self , wx .ID_ANY , "Atom Indices" )
32+ self .aSpinCtrl = wx .SpinCtrl (self , wx .ID_ANY , "" , min = 0 , max = 100 , style = 0 )
33+ self .bSpinCtrl = wx .SpinCtrl (self , wx .ID_ANY , "" , min = 0 , max = 100 , style = 0 )
34+ self .static_line_2 = wx .StaticLine (self , wx .ID_ANY )
35+ self .instructionsLabel2 = wx .StaticText (self , wx .ID_ANY , "Or enter the elemental symbols of two atoms and\n the range over which to calculate the bond lengths." )
36+ self .elementLabel = wx .StaticText (self , wx .ID_ANY , "Elements" )
37+ self .aComboBox = wx .ComboBox (self , wx .ID_ANY , choices = [], style = 0 )
38+ self .bComboBox = wx .ComboBox (self , wx .ID_ANY , choices = [], style = 0 )
39+ self .rangeLabel = wx .StaticText (self , wx .ID_ANY , "Range" )
40+ self .lbTextCtrl = wx .TextCtrl (self , wx .ID_ANY , "" )
41+ self .toLabel = wx .StaticText (self , wx .ID_ANY , "to" )
42+ self .ubTextCtrl = wx .TextCtrl (self , wx .ID_ANY , "" )
43+ self .static_line_1 = wx .StaticLine (self , wx .ID_ANY )
4544 self .cancelButton = wx .Button (self , wx .ID_CANCEL , "Cancel" )
4645 self .okButton = wx .Button (self , wx .ID_OK , "OK" )
4746
@@ -50,8 +49,8 @@ def __init__(self, *args, **kwds):
5049
5150 self .Bind (wx .EVT_SPINCTRL , self .onSpin , self .aSpinCtrl )
5251 self .Bind (wx .EVT_SPINCTRL , self .onSpin , self .bSpinCtrl )
53- self .Bind (wx .EVT_BUTTON , self .onCancel , id = wx . ID_CANCEL )
54- self .Bind (wx .EVT_BUTTON , self .onOk , id = wx . ID_OK )
52+ self .Bind (wx .EVT_BUTTON , self .onCancel , self . cancelButton )
53+ self .Bind (wx .EVT_BUTTON , self .onOk , self . okButton )
5554 # end wxGlade
5655 self .__customProperties ()
5756
@@ -68,25 +67,25 @@ def __set_properties(self):
6867
6968 def __do_layout (self ):
7069 # begin wxGlade: BondLengthDialog.__do_layout
71- sizer_2 = wx .StaticBoxSizer (self . sizer_2_staticbox , wx .VERTICAL )
70+ sizer_2 = wx .StaticBoxSizer (wx . StaticBox ( self , wx . ID_ANY , "" ) , wx .VERTICAL )
7271 sizer_4_copy = wx .BoxSizer (wx .HORIZONTAL )
7372 sizer_4_copy_1 = wx .BoxSizer (wx .HORIZONTAL )
7473 sizer_4 = wx .BoxSizer (wx .HORIZONTAL )
7574 sizer_3 = wx .BoxSizer (wx .HORIZONTAL )
76- sizer_2 .Add (self .instructionsLabel , 0 , wx .ALL | wx .ALIGN_CENTER_VERTICAL , 5 )
77- sizer_3 .Add (self .indicesLabel , 0 , wx .ALL | wx .ALIGN_CENTER_VERTICAL , 5 )
75+ sizer_2 .Add (self .instructionsLabel , 0 , wx .ALIGN_CENTER_VERTICAL | wx .ALL , 5 )
76+ sizer_3 .Add (self .indicesLabel , 0 , wx .ALIGN_CENTER_VERTICAL | wx .ALL , 5 )
7877 sizer_3 .Add (self .aSpinCtrl , 0 , wx .ALL , 5 )
7978 sizer_3 .Add (self .bSpinCtrl , 0 , wx .ALL , 5 )
8079 sizer_2 .Add (sizer_3 , 0 , wx .EXPAND , 0 )
81- sizer_2 .Add (self .static_line_2 , 0 , wx .BOTTOM | wx .EXPAND , 5 )
82- sizer_2 .Add (self .instructionsLabel2 , 0 , wx .ALL | wx .ALIGN_CENTER_VERTICAL , 5 )
83- sizer_4 .Add (self .elementLabel , 0 , wx .ALL | wx .ALIGN_CENTER_VERTICAL , 5 )
80+ sizer_2 .Add (self .static_line_2 , 0 , wx .BOTTOM | wx .EXPAND , 5 )
81+ sizer_2 .Add (self .instructionsLabel2 , 0 , wx .ALIGN_CENTER_VERTICAL | wx .ALL , 5 )
82+ sizer_4 .Add (self .elementLabel , 0 , wx .ALIGN_CENTER_VERTICAL | wx .ALL , 5 )
8483 sizer_4 .Add (self .aComboBox , 0 , wx .ALL , 5 )
8584 sizer_4 .Add (self .bComboBox , 0 , wx .ALL , 5 )
8685 sizer_2 .Add (sizer_4 , 0 , wx .EXPAND , 0 )
87- sizer_4_copy_1 .Add (self .rangeLabel , 0 , wx .ALL | wx .ALIGN_CENTER_VERTICAL , 5 )
86+ sizer_4_copy_1 .Add (self .rangeLabel , 0 , wx .ALIGN_CENTER_VERTICAL | wx .ALL , 5 )
8887 sizer_4_copy_1 .Add (self .lbTextCtrl , 0 , wx .ALL , 5 )
89- sizer_4_copy_1 .Add (self .toLabel , 0 , wx .ALL | wx .ALIGN_CENTER_VERTICAL , 5 )
88+ sizer_4_copy_1 .Add (self .toLabel , 0 , wx .ALIGN_CENTER_VERTICAL | wx .ALL , 5 )
9089 sizer_4_copy_1 .Add (self .ubTextCtrl , 0 , wx .ALL , 5 )
9190 sizer_2 .Add (sizer_4_copy_1 , 0 , wx .EXPAND , 0 )
9291 sizer_2 .Add (self .static_line_1 , 0 , wx .EXPAND , 0 )
0 commit comments