Ejemplo n.º 1
0
 def click_configure(self):
     current_selection = self.current.listbox.curselection()
     if len(current_selection):
         dialog = ConfigServiceConfigDialog(
             master=self,
             app=self.app,
             service_name=self.current.listbox.get(current_selection[0]),
             node_id=self.node_id,
         )
         if not dialog.has_error:
             dialog.show()
     else:
         messagebox.showinfo(
             "Node service configuration", "Select a service to configure"
         )
Ejemplo n.º 2
0
 def click_configure(self) -> None:
     current_selection = self.current.listbox.curselection()
     if len(current_selection):
         dialog = ConfigServiceConfigDialog(
             self,
             self.app,
             self.current.listbox.get(current_selection[0]),
             self.node,
         )
         if not dialog.has_error:
             dialog.show()
             self.draw_current_services()
     else:
         messagebox.showinfo(
             "Config Service Configuration",
             "Select a service to configure",
             parent=self,
         )