mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 07:18:59 +08: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,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…
x
Reference in New Issue
Block a user