本文整理汇总了Python中wx.SYSTEM_MENU属性的典型用法代码示例。如果您正苦于以下问题:Python wx.SYSTEM_MENU属性的具体用法?Python wx.SYSTEM_MENU怎么用?Python wx.SYSTEM_MENU使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类wx
的用法示例。
在下文中一共展示了wx.SYSTEM_MENU属性的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYSTEM_MENU [as 别名]
def __init__(self):
wx.Frame.__init__(self, None,
pos=wx.DefaultPosition, size=wx.Size(450, 100),
style=wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION |
wx.CLOSE_BOX | wx.CLIP_CHILDREN,
title="BRUNO")
panel = wx.Panel(self)
ico = wx.Icon('boy.ico', wx.BITMAP_TYPE_ICO)
self.SetIcon(ico)
my_sizer = wx.BoxSizer(wx.VERTICAL)
lbl = wx.StaticText(panel,
label="Bienvenido Sir. How can I help you?")
my_sizer.Add(lbl, 0, wx.ALL, 5)
self.txt = wx.TextCtrl(panel, style=wx.TE_PROCESS_ENTER,
size=(400, 30))
self.txt.SetFocus()
self.txt.Bind(wx.EVT_TEXT_ENTER, self.OnEnter)
my_sizer.Add(self.txt, 0, wx.ALL, 5)
panel.SetSizer(my_sizer)
self.Show()
speak.Speak('''Welcome back Sir, Broono at your service.''')
示例2: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYSTEM_MENU [as 别名]
def __init__(self, plugin, pos, alwaysOnTop):
style = wx.SYSTEM_MENU|wx.MINIMIZE_BOX|wx.CLIP_CHILDREN|wx.CLOSE_BOX
if not plugin.showInTaskbar:
style |= wx.FRAME_NO_TASKBAR
if plugin.windowStyle == 0:
style |= wx.CAPTION
elif plugin.windowStyle == 1:
style |= wx.RAISED_BORDER
elif plugin.windowStyle == 2:
style |= wx.NO_BORDER|wx.FRAME_SHAPED
if alwaysOnTop:
style |= wx.STAY_ON_TOP
wx.Frame.__init__(
self,
None,
title=plugin.caption,
pos=pos,
style=style
)
self.SetBackgroundColour(plugin.windowColour)
示例3: OnShowSettings
# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYSTEM_MENU [as 别名]
def OnShowSettings(self, event):
if self.settings_frame is None:
frame_rect = self.GetRect()
display_rect = wx.GetClientDisplayRect()
x_start = frame_rect[0] + frame_rect[2]
if x_start > (display_rect[2] - 400):
x_start = display_rect[2] - 400
y_start = frame_rect[1]
self.settings_frame = SettingsFrame(
self,
-1,
"Settings",
style=wx.CAPTION | wx.MINIMIZE_BOX | wx.CLOSE_BOX | wx.SYSTEM_MENU,
pos=(x_start, y_start),
)
self.settings_frame.Show()
示例4: OnInit
# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYSTEM_MENU [as 别名]
def OnInit(self):
ret = BTApp.OnInit(self)
f = Frame(None, wx.ID_ANY, "%s Language" % app_name,
style=wx.MINIMIZE_BOX|wx.MAXIMIZE_BOX|wx.SYSTEM_MENU|wx.CAPTION|wx.CLOSE_BOX|wx.CLIP_CHILDREN|wx.RESIZE_BORDER)
f.Show()
return ret
示例5: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYSTEM_MENU [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()
示例6: OnShowZoom
# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYSTEM_MENU [as 别名]
def OnShowZoom(self, event):
if self.zoom_frame is None:
self.zoom_frame = ZoomFrame(
self,
-1,
"Zoom",
style=wx.CAPTION | wx.CLOSE_BOX | wx.RESIZE_BORDER | wx.SYSTEM_MENU,
)
self.zoom_frame.set_image(self._img)
self.zoom_frame.Show()
self.zoom_frame.Raise()
示例7: OnShow3D
# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYSTEM_MENU [as 别名]
def OnShow3D(self, event):
if self.zoom_3d is None:
from rstbx.viewer import pixels3d
self.zoom_3d = pixels3d.pixel_viewer_3d_frame(
self,
-1,
"3D view",
style=wx.CAPTION | wx.CLOSE_BOX | wx.RESIZE_BORDER | wx.SYSTEM_MENU,
)
self.zoom_3d.set_image(self._img)
self.zoom_3d.Show()
self.zoom_3d.Raise()
示例8: OnShowPlot
# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYSTEM_MENU [as 别名]
def OnShowPlot(self, event):
if self.plot_frame is None:
self.plot_frame = PlotFrame(
self,
-1,
"Intensity profile",
style=wx.CAPTION | wx.CLOSE_BOX | wx.SYSTEM_MENU,
)
self.plot_frame.Show()
示例9: __init__
# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYSTEM_MENU [as 别名]
def __init__(self, *args, **kwargs):
super(Frame, self).__init__(*args, **kwargs)
self.MyFrame = self
self.is_running = False
self.panel = wx.Panel(
self,
pos=(0, 0),
size=(500,100),
style=wx.CLOSE_BOX | wx.CAPTION | wx.MINIMIZE_BOX | wx.SYSTEM_MENU
)
self.panel.SetBackgroundColour('#ffffff')
self.SetTitle('Filmow to Letterboxd')
self.SetMinSize((500, 300))
self.SetMaxSize((500, 300))
self.letterboxd_link = hl.HyperLinkCtrl(
self.panel,
-1,
'letterboxd',
URL='https://letterboxd.com/import/',
pos=(420,240)
)
self.letterboxd_link.SetToolTip(wx.ToolTip('Clica só quando o programa tiver rodado e sua conta no Letterboxd tiver criada, beleza?'))
self.coffee_link = hl.HyperLinkCtrl(
self.panel,
-1,
'quer me agradecer?',
URL='https://www.buymeacoffee.com/yanari',
pos=(310,240)
)
self.coffee_link.SetToolTip(wx.ToolTip('Se tiver dado tudo certo cê pode me pagar um cafézinho, que tal?. Não é obrigatório, claro.'))
wx.StaticText(self.panel, -1, 'Username no Filmow:', pos=(25, 54))
self.username = wx.TextCtrl(self.panel, size=(200, 25), pos=(150, 50))
submit_button = wx.Button(self.panel, wx.ID_SAVE, 'Submit', pos=(360, 50))
self.Bind(wx.EVT_BUTTON, self.Submit, submit_button)
self.Bind(wx.EVT_CLOSE, self.OnClose)
self.Show(True)