本文整理汇总了Python中wx.MAXIMIZE_BOX属性的典型用法代码示例。如果您正苦于以下问题:Python wx.MAXIMIZE_BOX属性的具体用法?Python wx.MAXIMIZE_BOX怎么用?Python wx.MAXIMIZE_BOX使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类wx
的用法示例。
在下文中一共展示了wx.MAXIMIZE_BOX属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import MAXIMIZE_BOX [as 别名]
def __init__(self, parent, id, title, size):
wx.Frame.__init__(self, parent, id, title,
style=wx.DEFAULT_FRAME_STYLE ^ (wx.RESIZE_BORDER | wx.MINIMIZE_BOX |
wx.MAXIMIZE_BOX))
self.SetSize(size)
self.Center()
self.ps = wx.StaticText(self, label='IF part using \'AND\' to combine antecedent. Please ONE antecedent per line',
pos=(10, 5), size=(40 ,100))
self.ifLabel = wx.StaticText(self, label='IF: ', pos=(10, 30), size=(40, 50))
self.thenLabel = wx.StaticText(self, label='THEN: ', pos=(10, 250), size=(40, 50))
self.descriptionLabel = wx.StaticText(self, label='Description: ', pos=(10, 280), size=(40, 50))
self.ifText = wx.TextCtrl(self, pos=(100, 30), size=(490, 210), style=wx.TE_MULTILINE)
self.thenText = wx.TextCtrl(self, pos=(100, 250), size=(490, 25))
self.descriptionText = wx.TextCtrl(self, pos=(100, 280), size=(490, 25))
self.createButton = wx.Button(self, label='Create', pos=(85, 320), size=(130, 30))
self.createButton.Bind(wx.EVT_BUTTON, self.create_rule)
self.cancelButton = wx.Button(self, label='Cancel', pos=(385, 320), size=(130, 30))
self.cancelButton.Bind(wx.EVT_BUTTON, self.cancel_creation)
示例2: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import MAXIMIZE_BOX [as 别名]
def __init__(self, *args, **kwds):
# begin wxGlade: TemplateInfoDialog.__init__
kwds["style"] = wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.RESIZE_BORDER
wx.Dialog.__init__(self, *args, **kwds)
self.template_name = wx.TextCtrl(self, wx.ID_ANY, "")
self.author = wx.TextCtrl(self, wx.ID_ANY, "")
self.description = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE)
self.instructions = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_MULTILINE)
self.button_1 = wx.Button(self, wx.ID_OK, "")
self.button_2 = wx.Button(self, wx.ID_CANCEL, "")
self.__set_properties()
self.__do_layout()
# end wxGlade
示例3: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import MAXIMIZE_BOX [as 别名]
def __init__(self, parent, id, title, text):
wx.Frame.__init__(self, parent, id, title, style=wx.DEFAULT_FRAME_STYLE ^ (wx.RESIZE_BORDER | wx.MINIMIZE_BOX |
wx.MAXIMIZE_BOX))
self.SetSize((400, 780))
self.SetPosition((200, 0))
self.ruleText = wx.TextCtrl(self, pos=(0, 0), size=(400, 780), style=wx.TE_MULTILINE | wx.TE_READONLY)
self.ruleText.WriteText(text)
示例4: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import MAXIMIZE_BOX [as 别名]
def __init__(self, repo):
FrameStyle = wx.CAPTION | wx.RESIZE_BORDER | wx.SYSTEM_MENU |\
wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX | wx.CLOSE_BOX
wx.Frame.__init__(self, parent=None, id=-1, title="BookHub",
pos=(100, 100), size=(500, 600), style=FrameStyle)
self.BuildUI()
self.InitObjectListView(repo)
self.InitSearchCtrls()