~ubuntu-branches/ubuntu/wily/python-avc/wily

« back to all changes in this revision

Viewing changes to examples/wx_counter.py

  • Committer: Package Import Robot
  • Author(s): Olly Betts
  • Date: 2014-09-19 08:00:20 UTC
  • mfrom: (2.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20140919080020-zyrk2o6ywebz6981
Tags: 0.8.3-1.1
* Non-maintainer upload with maintainer's consent.
* Update for wxPython 3.0 (Closes: #759091):
    + New patch: wxpython3.0.patch
    + Drop alternative dependency on long-obsolete python-wxgtk2.6.
      (Closes: #645890)

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
HIGH_SPEED = 0.1                        #- low and high speed period (ms)
40
40
 
41
41
 
42
 
class ExampleGUI(wx.PySimpleApp):
 
42
class ExampleGUI(wx.App):
43
43
  "Counter GUI creation"
44
44
 
45
45
  def __init__(self):
46
46
 
47
47
    # init wx application base class
48
 
    wx.PySimpleApp.__init__(self)
 
48
    wx.App.__init__(self)
49
49
 
50
50
    # create GUI
51
51
    xml_resource = xrc.XmlResource(WXGLADE_XML)