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 MainPanel(wx.Panel): | |
| def __init__(self, parent): | |
| wx.Panel.__init__(self, parent) | |
| main_sizer = wx.BoxSizer(wx.VERTICAL) | |
| for row in range(7): |
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 os | |
| import wx | |
| from PIL import Image | |
| from wx.lib.pubsub import pub | |
| PhotoMaxSize = 240 | |
| class DropTarget(wx.FileDropTarget): |
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): | |
| wx.Frame.__init__(self, parent=None, title='Mouse Position') | |
| panel = wx.Panel(self) | |
| panel.Bind(wx.EVT_MOTION, self.on_mouse_movement) |
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.grid as gridlib | |
| import wx.lib.agw.ribbon as RB | |
| class MyRibbonBar(wx.Panel): | |
| def __init__(self, *ls, **kw): | |
| self.locale = wx.Locale(wx.LANGUAGE_ENGLISH) | |
| wx.Panel.__init__(self, *ls, **kw) | |
| ribbon = RB.RibbonBar(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 time | |
| import wx | |
| from threading import Thread | |
| ######################################################################## | |
| class TestThread(Thread): | |
| """Test Worker Thread Class.""" |
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 py2exe | |
| from distutils.core import setup | |
| packages = ['lxml', 'wx.lib.pubsub'] | |
| options = {'py2exe': {'packages': packages}, | |
| } | |
| setup( |
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.stc as stc | |
| class XmlSTC(stc.StyledTextCtrl): | |
| def __init__(self, parent): | |
| stc.StyledTextCtrl.__init__(self, parent) | |
| self.SetLexer(stc.STC_LEX_XML) |
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 AttrDialog(wx.Dialog): | |
| def __init__(self, xml_obj): | |
| wx.Dialog.__init__(self, None, title='Add Attribute') | |
| self.xml_obj = xml_obj | |
| lbl_sizer = wx.BoxSizer(wx.HORIZONTAL) |
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): | |
| """Constructor""" | |
| wx.Panel.__init__(self, parent) |