This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| ######################################################################## | |
| class MyForm(wx.Frame): | |
| #---------------------------------------------------------------------- | |
| def __init__(self): | |
| wx.Frame.__init__(self, None, wx.ID_ANY, "List Control Tutorial") | |
| # Add a panel so it looks the correct on all platforms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| ######################################################################## | |
| class MyPanel(wx.Panel): | |
| """""" | |
| #---------------------------------------------------------------------- | |
| def __init__(self, parent, bg=None): | |
| """Constructor""" | |
| wx.Panel.__init__(self, parent) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| import wx.html | |
| HTML_WINDOW_SIZE = (100, 200) | |
| TEXT1 = "TEXT number 1 2 3 4 5 6 7 8 9 " | |
| TEXT2 = "TEXT nember 2 3 4 5 6 7 8 9 " | |
| class MyFrame(wx.Frame): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| class TestPanel(wx.Panel): | |
| def __init__(self, parent): | |
| wx.Panel.__init__(self, parent, -1) | |
| b = wx.Button(self, -1, "Create and Show a ProgressDialog", (50,50)) | |
| self.Bind(wx.EVT_BUTTON, self.OnButton, b) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| import wx.lib.newevent | |
| BbClickEvent, EVT_BB_CLICK = wx.lib.newevent.NewCommandEvent() | |
| BbClickEvent = wx.NewEventType() | |
| EVT_BB_CLICK = wx.PyEventBinder(BbClickEvent, 0) | |
| ######################################################################## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| ######################################################################## | |
| class MyFrame(wx.Frame): | |
| """""" | |
| #---------------------------------------------------------------------- | |
| def __init__(self): | |
| """Constructor""" | |
| wx.Frame.__init__(self, None, title='combo') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| import time | |
| class MyForm(wx.Frame): | |
| def __init__(self): | |
| wx.Frame.__init__(self, None, wx.ID_ANY, "Timer Tutorial 1", | |
| size=(500,500)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import wx | |
| class MyForm(wx.Frame): | |
| def __init__(self): | |
| wx.Frame.__init__(self, None, title="Screenshot Tutorial") | |
| panel = wx.Panel(self) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| from wx.adv import Wizard, WizardPage | |
| class MyWizardPage(WizardPage): | |
| def __init__(self, parent, title): | |
| WizardPage.__init__(self) | |
| self.next = None | |
| self.prev = None | |
| self.initializeUI(title) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| class MyFileDropTarget(wx.FileDropTarget): | |
| """""" | |
| def __init__(self, window): | |
| """Constructor""" | |
| wx.FileDropTarget.__init__(self) | |
| self.window = window |