Skip to content
Snippets Groups Projects
Select Git revision
  • d5ca527bfe24bfb47a2577dfb36e6ae050d30ea0
  • main default protected
  • develop
  • 1.0.0
  • 0.2.0
  • 0.1.1
  • 0.1.0
  • 0.0.2
8 results

ChildProcessControl2.py

Blame
  • user avatar
    Christoph Schmidt authored
    d5ca527b
    History
    ChildProcessControl2.py 1016 B
    from PySide6.QtCore import Signal
    
    import cmp
    from ChildProcess2 import ChildProcess2
    
    
    class ChildProcessControl2(cmp.CProcessControl):
        call_without_mp_finished = Signal(int)
        #call_without_mp2_changed = Signal(int, int, int)
    
        def __init__(self, parent, signal_class, enable_internal_logging):
            super().__init__(parent, signal_class, enable_internal_logging=enable_internal_logging)
            self.register_child_process(ChildProcess2(
                self.state_queue,
                self.cmd_queue,
                enable_internal_logging=enable_internal_logging))
    
        @cmp.CProcessControl.register_function()
        def call_without_mp(self, a, b, c=None):
            pass
            #print(f"{os.getpid()} -> call_without_mp with {a}, {b}, {c}!")
    
        @cmp.CProcessControl.register_function()
        def call_without_mp2(self, a, b, c=None, **kwargs):
          pass
    
        @cmp.CProcessControl.register_function()
        def call_all(self):
           pass
           #print(f"{os.getpid()} -> Executing call_all in Control Class.")