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 psutil | |
| import simplejson | |
| import time | |
| import urllib2 | |
| # Sends the CPU and memory usage stats to Loggly. Sends both a machine total and per process. | |
| def log(): | |
| """""" | |
| proc_dict = {} |
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, "Tutorial", size=(500,500)) | |
| self.btnNum = 1 | |
| # Add a panel so it looks the correct on all platforms | |
| self.panel = wx.Panel(self, wx.ID_ANY) |
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, parent=None, title="Hello World!") |
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 os | |
| class MainWindow(wx.Frame): | |
| def __init__(self,parent,title): | |
| wx.Frame.__init__(self, parent, title=title) | |
| self.workbookDir = r'C:\Users\Nick\Desktop' | |
| self.workbookName = 'rota.xlsx' | |
| self.panel = wx.Panel(self) | |
| self.label = wx.StaticText(self.panel, label = 'Workbook path: ') |
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) |
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) |
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 MyCustomToolbar(wx.Panel): | |
| """""" | |
| #---------------------------------------------------------------------- | |
| def __init__(self, parent): | |
| """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
| #---------------------------------------------------------------------- | |
| # This file was generated by encode_bitmaps.py | |
| # | |
| from wx.lib.embeddedimage import PyEmbeddedImage | |
| Mondrian = PyEmbeddedImage( | |
| "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAHFJ" | |
| "REFUWIXt1jsKgDAQRdF7xY25cpcWC60kioI6Fm/ahHBCMh+BRmGMnAgEWnvPpzK8dvrFCCCA" | |
| "coD8og4c5Lr6WB3Q3l1TBwLYPuF3YS1gn1HphgEEEABcKERrGy0E3B0HFJg7C1N/f/kTBBBA" | |
| "+Vi+AMkgFEvBPD17AAAAAElFTkSuQmCC") |
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): | |
| style = (wx.DEFAULT_FRAME_STYLE|wx.MAXIMIZE) & ~ (wx.RESIZE_BORDER|wx.MINIMIZE_BOX) | |
| wx.Frame.__init__(self, None, title='Test') | |
| panel = wx.Panel(self) | |
| btn = wx.Button(panel, label="Close") | |
| btn.Bind(wx.EVT_BUTTON, self.onClose) |
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 subprocess | |
| import wx | |
| ######################################################################## | |
| class MyPanel(wx.Panel): | |
| """""" | |
| #---------------------------------------------------------------------- | |
| def __init__(self, parent): | |
| """Constructor""" |