from Cura.Application import Application

class ScannerApplication(Application):
    def __init__(self):
        super(ScannerApplication, self).__init__()
        
        self._plugin_registry.loadPlugin("STLReader")
        self._plugin_registry.loadPlugin("STLWriter")
        self._plugin_registry.loadPlugin("MeshView")
        self._plugin_registry.loadPlugin("TransformTool")
        
    def run(self):
        print("Imma scanning ma laz0rs")

from Cura.WxApplication import WxApplication

class ScannerApplication(WxApplication):
    def __init__(self):
        super(ScannerApplication, self).__init__()
        
        self._plugin_registry.loadPlugin("STLReader")
        self._plugin_registry.loadPlugin("STLWriter")
        self._plugin_registry.loadPlugin("MeshView")
        self._plugin_registry.loadPlugin("TransformTool")
        
    def run(self):
        print("Imma scanning ma laz0rs")
        super(ScannerApplication, self).run()

Use WxApplication as base class for the scanner
Use WxApplication as base class for the scanner

- from Cura.Application import Application
+ from Cura.WxApplication import WxApplication
  
- class ScannerApplication(Application):
+ class ScannerApplication(WxApplication):
      def __init__(self):
          super(ScannerApplication, self).__init__()
          
          self._plugin_registry.loadPlugin("STLReader")
          self._plugin_registry.loadPlugin("STLWriter")
          self._plugin_registry.loadPlugin("MeshView")
          self._plugin_registry.loadPlugin("TransformTool")
          
      def run(self):
          print("Imma scanning ma laz0rs")
+         super(ScannerApplication, self).run()
  
Use WxApplication as base class for the scanner
## Code Before:
from Cura.Application import Application

class ScannerApplication(Application):
    def __init__(self):
        super(ScannerApplication, self).__init__()
        
        self._plugin_registry.loadPlugin("STLReader")
        self._plugin_registry.loadPlugin("STLWriter")
        self._plugin_registry.loadPlugin("MeshView")
        self._plugin_registry.loadPlugin("TransformTool")
        
    def run(self):
        print("Imma scanning ma laz0rs")

## Instruction:
Use WxApplication as base class for the scanner
## Code After:
from Cura.WxApplication import WxApplication

class ScannerApplication(WxApplication):
    def __init__(self):
        super(ScannerApplication, self).__init__()
        
        self._plugin_registry.loadPlugin("STLReader")
        self._plugin_registry.loadPlugin("STLWriter")
        self._plugin_registry.loadPlugin("MeshView")
        self._plugin_registry.loadPlugin("TransformTool")
        
    def run(self):
        print("Imma scanning ma laz0rs")
        super(ScannerApplication, self).run()
