mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Add a WxApplication class and use it in the printer application to show a window
This commit is contained in:
parent
ec6cb3ffdc
commit
6b82c8dc9a
1 changed files with 7 additions and 3 deletions
|
@ -1,8 +1,12 @@
|
||||||
from Cura.Application import Application
|
from Cura.WxApplication import WxApplication
|
||||||
|
|
||||||
class PrinterApplication(Application):
|
import wx
|
||||||
|
|
||||||
|
class PrinterApplication(WxApplication):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(PrinterApplication, self).__init__()
|
super(PrinterApplication, self).__init__()
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
print("Shoopdawoop")
|
frame = wx.Frame(None, wx.ID_ANY, "Hello World")
|
||||||
|
frame.Show(True)
|
||||||
|
super(PrinterApplication, self).run()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue