當前位置: 首頁>>代碼示例>>Python>>正文


Python wx.CAPTION屬性代碼示例

本文整理匯總了Python中wx.CAPTION屬性的典型用法代碼示例。如果您正苦於以下問題:Python wx.CAPTION屬性的具體用法?Python wx.CAPTION怎麽用?Python wx.CAPTION使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在wx的用法示例。


在下文中一共展示了wx.CAPTION屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [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.''') 
開發者ID:ab-anand,項目名稱:Bruno,代碼行數:25,代碼來源:daily.py

示例2: Configure

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [as 別名]
def Configure(self, prompt=None, initialValue=""):
        if prompt is None:
            prompt = PROMPT
        eg.TaskletDialog.__init__(
            self, None, -1, PROMPT, style=wx.RESIZE_BORDER | wx.CAPTION
        )
        textCtrl = self.TextCtrl(initialValue, size=(300, -1))
        buttonRow = eg.ButtonRow(self, [wx.ID_OK])
        mainSizer = eg.VBoxSizer(
            (self.StaticText(prompt), 0, wx.EXPAND | wx.ALL, 5),
            (textCtrl, 0, wx.EXPAND | wx.ALL, 5),
            ((5, 5), 1, wx.EXPAND),
            (wx.StaticLine(self), 0, wx.EXPAND),
            (buttonRow.sizer, 0, wx.EXPAND),
        )
        self.SetSizerAndFit(mainSizer)
        self.SetMinSize(self.GetSize())
        while self.Affirmed():
            self.SetResult(textCtrl.GetValue()) 
開發者ID:EventGhost,項目名稱:EventGhost,代碼行數:21,代碼來源:SimpleInputDialog.py

示例3: __init__

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [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) 
開發者ID:EventGhost,項目名稱:EventGhost,代碼行數:22,代碼來源:__init__.py

示例4: OnShowSettings

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [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() 
開發者ID:dials,項目名稱:dials,代碼行數:18,代碼來源:rstbx_frame.py

示例5: OnPluginWrapper

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [as 別名]
def OnPluginWrapper(self, p):
        def OnPlugin(event):
            if not self._plugins_frame[p]:
                helper = self.plugins[p].PluginHelper
                self._plugins_frame[p] = helper._plugin_settings_frame(
                    self,
                    wx.ID_ANY,
                    helper._plugin_title,
                    style=wx.CAPTION | wx.CLOSE_BOX,
                )
                self._plugins_frame[p].Show()
                self._plugins_frame[p].Raise()
            else:
                self._plugins_frame[p].Destroy()

        return OnPlugin 
開發者ID:dials,項目名稱:dials,代碼行數:18,代碼來源:frame.py

示例6: OnOk

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [as 別名]
def OnOk(self, dummyEvent):
        repository = self.chcRepo.GetStringSelection()
        try:
            user, repo = repository.split('/')
        except ValueError:
            dlg = wx.MessageDialog(
                self,
                caption="Information",
                style=wx.OK,
                message="Repositoryname not valid. Must be:\n"
                "<user or organization>/<repository>."
            )
            dlg.ShowModal()
            return

        for child in self.GetChildren():
            child.Enable(False)
        #self.SetWindowStyleFlag(wx.CAPTION|wx.RESIZE_BORDER)
        for task in self.buildSetup.tasks:
            if not task.visible:
                continue
            section = task.GetId()
            if section in self.ctrls:
                ctrl = self.ctrls[section]
                task.activated = ctrl.GetValue()
        (
            self.buildSetup.appVersion,
            self.buildSetup.appVersionInfo
        ) = (
            ParseVersion(self.versionStr.GetValue())
        )
        self.buildSetup.gitConfig.update({
            "user": user,
            "repo": repo,
            "branch": self.chcBranch.GetStringSelection(),
        })
        self.buildSetup.args.websiteUrl = self.url.GetValue()

        self.buildSetup.config.SaveSettings()
        thread = threading.Thread(target=self.DoMain)
        thread.start() 
開發者ID:EventGhost,項目名稱:EventGhost,代碼行數:43,代碼來源:Gui.py

示例7: __init__

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [as 別名]
def __init__(self, parent, dll):
        self.dll = dll
        self.result = None
        self.shouldRun = True
        wx.Dialog.__init__(self, parent, -1,
            "Learn IR Code",
            style=wx.CAPTION
        )

        text = (
            "1. Aim remote directly at the Tira approximately 1 inches "
            "from Tira face.\n\n"
            "2. PRESS and HOLD the desired button on your remote until "
            "learning is complete..."
        )
        staticText = wx.StaticText(self, -1, text, style=wx.ST_NO_AUTORESIZE)
        def OnCancel(dummyEvent):
            self.shouldRun = False
            self.EndModal(wx.OK)

        cancelButton = wx.Button(self, -1, eg.text.General.cancel)
        cancelButton.Bind(wx.EVT_BUTTON, OnCancel)

        mainSizer = wx.BoxSizer(wx.VERTICAL)
        mainSizer.Add(staticText, 1, wx.EXPAND|wx.ALL, 5)
        mainSizer.Add(
            cancelButton,
            0,
            wx.BOTTOM|wx.ALIGN_CENTER_HORIZONTAL,
            5
        )

        self.SetSizer(mainSizer)
        self.SetAutoLayout(True)
        mainSizer.Fit(self)

        self.captureThread = threading.Thread(target=self.CaptureLoop)
        self.captureThread.start() 
開發者ID:EventGhost,項目名稱:EventGhost,代碼行數:40,代碼來源:__init__.py

示例8: __init__

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [as 別名]
def __init__(self, parent, plugin):
        wx.MiniFrame.__init__(
            self,
            parent,
            -1,
            style=wx.CAPTION,
            name="MenuEventsDialog"
        )
        self.panel = parent
        self.plugin = plugin
        self.evtList = cpy(self.panel.evtList)
        self.SetBackgroundColour(wx.NullColour)
        self.ctrl = None
        self.sel = -1 
開發者ID:EventGhost,項目名稱:EventGhost,代碼行數:16,代碼來源:__init__.py

示例9: __init__

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [as 別名]
def __init__(self, parent):
        self.plugin = parent.plugin
        wx.Frame.__init__(
            self,
            None,
            -1,
            size=(-1, -1),
            style=wx.CAPTION|wx.RESIZE_BORDER
        )
        self.SetBackgroundColour(wx.NullColour)
        self.menuFlag = False
        self.parent=parent 
開發者ID:EventGhost,項目名稱:EventGhost,代碼行數:14,代碼來源:__init__.py

示例10: __init__

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [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() 
開發者ID:JackonYang,項目名稱:bookhub,代碼行數:11,代碼來源:frame_overview.py

示例11: OnShowZoom

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [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() 
開發者ID:dials,項目名稱:dials,代碼行數:13,代碼來源:rstbx_frame.py

示例12: OnShow3D

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [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() 
開發者ID:dials,項目名稱:dials,代碼行數:15,代碼來源:rstbx_frame.py

示例13: OnShowPlot

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [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() 
開發者ID:dials,項目名稱:dials,代碼行數:11,代碼來源:rstbx_frame.py

示例14: OnMask

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [as 別名]
def OnMask(self, event):
        if not self._mask_frame:
            self._mask_frame = MaskSettingsFrame(
                self,
                wx.ID_ANY,
                "Mask tool",
                style=wx.CAPTION | wx.CLOSE_BOX | wx.RESIZE_BORDER,
            )
            self._mask_frame.Show()
            self._mask_frame.Raise()
        else:
            self._mask_frame.Destroy() 
開發者ID:dials,項目名稱:dials,代碼行數:14,代碼來源:spotfinder_frame.py

示例15: OnCalibration

# 需要導入模塊: import wx [as 別名]
# 或者: from wx import CAPTION [as 別名]
def OnCalibration(self, event):
        from rstbx.slip_viewer.calibration_frame import SBSettingsFrame

        if not self._calibration_frame:
            self._calibration_frame = SBSettingsFrame(
                self, wx.ID_ANY, "Quadrant calibration", style=wx.CAPTION | wx.CLOSE_BOX
            )
            self._calibration_frame.Show()
            self._calibration_frame.Raise()
        else:
            self._calibration_frame.Destroy() 
開發者ID:dials,項目名稱:dials,代碼行數:13,代碼來源:frame.py


注:本文中的wx.CAPTION屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。