• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
int(x[, base]) -> integer

Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.  If base is zero, the proper base is guessed based on the
string content.  If the argument is outside the integer range a
long object will be returned instead.

src/w/x/wxPython-In-Action-HEAD/wxDesigner/samples2.19/notebook/notebook_wdr.py   wxPython-In-Action(Download)
def PageOneFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
 
    item1 = wx.TextCtrl( parent, ID_TEXTCTRL, "", wx.DefaultPosition, [200,-1], 0 )
    item0.Add( item1, 0, wx.ALIGN_CENTER|wx.ALL, 20 )
 
    item2 = wx.TextCtrl( parent, ID_TEXTCTRL, "", wx.DefaultPosition, [200,90], wx.TE_MULTILINE )
def PageTwoFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
 
    item2 = wx.StaticBox( parent, -1, "Checks" )
    item1 = wx.StaticBoxSizer( item2, wx.HORIZONTAL )
 
    item3 = wx.CheckBox( parent, ID_CHECKBOX, "Check", wx.DefaultPosition, wx.DefaultSize, 0 )
    item0.Add( item1, 0, wx.ALIGN_CENTER|wx.ALL, 5 )
 
    item7 = wx.StaticBox( parent, -1, "Buttons" )
    item6 = wx.StaticBoxSizer( item7, wx.VERTICAL )
 
    item8 = wx.Button( parent, ID_BUTTON, "OK", wx.DefaultPosition, wx.DefaultSize, 0 )
    item6.Add( item8, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )
def NotebookFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
 
    item2 = wx.Notebook( parent, ID_NOTEBOOK, wx.DefaultPosition, [200,160], 0 )
    if wx.VERSION >= (2,5,2):
        item1 = item2
    else:

src/w/x/wxPython-In-Action-HEAD/wxDesigner/sample2.19_execise/dynamic/Dynamic_exec_wdr.py   wxPython-In-Action(Download)
def TestDialogFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
 
    item2 = wx.StaticBox( parent, -1, "Text" )
    item1 = wx.StaticBoxSizer( item2, wx.VERTICAL )
 
    item3 = wx.StaticText( parent, ID_TEXT_STATIC, "This demonstrates a dynamic interface", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTRE )
def PageDialogFunc2( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
 
    item1 = wx.ListBox( parent, ID_LISTBOX, wx.DefaultPosition, [80,100], 
        ["ListItem1","ListItem2",""] , wx.LB_SINGLE|wx.LB_ALWAYS_SB )
    item0.Add( item1, 0, wx.ALIGN_CENTER|wx.ALL, 5 )
 

src/w/x/wxPython-In-Action-HEAD/wxDesigner/samples2.19/dynamic/dynamic_wdr.py   wxPython-In-Action(Download)
def MyDialogFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
 
    item2 = wx.StaticBox( parent, -1, "Text" )
    item1 = wx.StaticBoxSizer( item2, wx.VERTICAL )
    parent.my_sizer = item1
 
def MyPageTwoFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
 
    item1 = wx.ListBox( parent, ID_LISTBOX, wx.DefaultPosition, [160,100], 
        ["Item 1","Item 2","Item 3","Item 4"] , wx.LB_SINGLE|wx.LB_ALWAYS_SB )
    item0.Add( item1, 0, wx.ALIGN_CENTER|wx.ALL, 5 )
 

src/w/x/wxPython-In-Action-HEAD/wxDesigner/samples2.19/minimal/minimal_wdr.py   wxPython-In-Action(Download)
def MyDialogFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
 
    item2 = wx.StaticBox( parent, -1, "Copyright" )
    item2.SetFont( wx.Font( 16, wx.ROMAN, wx.NORMAL, wx.NORMAL ) )
    item1 = wx.StaticBoxSizer( item2, wx.VERTICAL )
    parent.copyright_sizer = item1

src/w/x/wxPython-In-Action-HEAD/wxDesigner/samples2.19/rad/rad_wdr.py   wxPython-In-Action(Download)
def MyDialogFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
 
    item2 = wx.StaticBox( parent, -1, "Controls will remember their values" )
    item1 = wx.StaticBoxSizer( item2, wx.VERTICAL )
 
    item3 = wx.FlexGridSizer( 0, 2, 0, 0 )

src/w/x/wxPython-In-Action-HEAD/wxDesigner/sample2.19_execise/derived/Derived_wdr.py   wxPython-In-Action(Download)
def MyDialogFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
 
    item2 = wx.StaticBox( parent, -1, "Special Text Ctrl" )
    item1 = wx.StaticBoxSizer( item2, wx.VERTICAL )
 
    item3 = Derived_ctrl( parent, ID_TEXTCTRL1, "", wx.DefaultPosition, [180,-1], 0|wx.EXPAND )

src/w/x/wxPython-In-Action-HEAD/wxDesigner/samples2.19/derived/derived_wdr.py   wxPython-In-Action(Download)
def MyDialogFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
 
    item2 = wx.StaticBox( parent, -1, "Special text controls" )
    item1 = wx.StaticBoxSizer( item2, wx.VERTICAL )
 
    item3 = MyTextCtrl( parent, ID_TEXTCTRL1, "", wx.DefaultPosition, [180,-1], 0 )

src/s/o/softgridhelper-HEAD/sampleCodes/newWxFormBuilder/newtest.py.py   softgridhelper(Download)
	def __init__( self, parent ):
		wx.Dialog.__init__  ( self, parent, id = wx.ID_ANY, title = u"mayaReportHelper", pos = wx.DefaultPosition, size = wx.Size( 549,361 ), style = wx.CAPTION|wx.CLOSE_BOX|wx.DEFAULT_DIALOG_STYLE|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX|wx.RESIZE_BORDER|wx.SIMPLE_BORDER )
 
		self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )
 
		sbSizer1 = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"label" ), wx.VERTICAL )
 
		bSizer1 = wx.BoxSizer( wx.VERTICAL )
 
		sbSizer1.Add( bSizer1, 1, wx.EXPAND, 5 )
 
		bSizer2 = wx.BoxSizer( wx.VERTICAL )
 
		sbSizer1.Add( bSizer2, 1, wx.EXPAND, 5 )
 

src/s/o/softgridhelper-HEAD/sampleCodes/newWxFormBuilder/newtest.py   softgridhelper(Download)
	def __init__( self, parent ):
		wx.Dialog.__init__  ( self, parent, id = wx.ID_ANY, title = u"mayaReportHelper", pos = wx.DefaultPosition, size = wx.Size( 549,331 ), style = wx.CAPTION|wx.CLOSE_BOX|wx.DEFAULT_DIALOG_STYLE|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX|wx.RESIZE_BORDER|wx.SIMPLE_BORDER )
 
		self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )
 
		sbSizer1 = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"label" ), wx.VERTICAL )
 
		bSizer1 = wx.BoxSizer( wx.VERTICAL )
 
		sbSizer1.Add( bSizer1, 1, wx.EXPAND, 5 )
 
		bSizer2 = wx.BoxSizer( wx.VERTICAL )
 
		sbSizer1.Add( bSizer2, 1, wx.EXPAND, 5 )
 

src/w/x/wxPython-In-Action-HEAD/wxDesigner/samples2.19/grid/grid_wdr.py   wxPython-In-Action(Download)
def MyDialogFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
 
    item2 = wx.StaticBox( parent, -1, "Text" )
    item1 = wx.StaticBoxSizer( item2, wx.VERTICAL )
 
    item3 = MyGrid( parent, ID_GRID, wx.DefaultPosition, [450,200], wx.WANTS_CHARS )

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next