import wxclass SketchWindow(wx.Window): def __init__(self, parent, ID): wx.Window.__init__(self, parent, ID) self.SetBackgroundColour("White") self.color = "Black" self.thickness = 1 self.pen = wx.Pen(self.color, self.thickness, wx.SOLID) self.lines = [] ... Read More
posted @ 2014-03-23 07:51 findumars Views(1037) Comments(0) Diggs(0)
#!/usr/bin/env pythonimport wxclass DoubleEventFrame(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, 'Frame With Button', size=(300, 100)) self.panel = wx.Panel(self, -1) self.cc = 1 self.button = wx.Button(self.panel, -1, "Cli... Read More
posted @ 2014-03-23 07:06 findumars Views(4109) Comments(0) Diggs(0)