コード例 #1
0
class PlacerView(Frame):

    def __init__(self, placement_controller, config):
        self.pv = None
        self.placement_controller = placement_controller
        self.config = config
        super().__init__()

    def update(self, *args, **kwargs):
        if self.pv is None:
            self.pv = PlacementView(
                display_controller=self,
                placement_controller=self.placement_controller,
                config=self.config,
                do_deploy_cb=self.done_cb)
            self.set_header(
                title="Bundle Editor"
            )
            self.set_body(self.pv)
        self.pv.update()
        EventLoop.set_alarm_in(1, self.update)

    def status_error_message(self, message):
        pass

    def status_info_message(self, message):
        pass

    def done_cb(self):
        log.debug("done_cb called")
        EventLoop.exit(0)
コード例 #2
0
 def update(self, *args, **kwargs):
     if self.pv is None:
         self.pv = PlacementView(
             display_controller=self,
             placement_controller=self.placement_controller,
             config=self.config,
             do_deploy_cb=self.done_cb)
         self.set_header(
             title="Bundle Editor"
         )
         self.set_body(self.pv)
     self.pv.update()
     EventLoop.set_alarm_in(1, self.update)