def add_show(self,default): # append it to the showlist and then add the medialist if self.current_showlist is not None: self.default_show=default d = gui.InputDialog("Add Show","Show Reference",width=400,height=250) d.set_on_confirm_value_listener(self, 'add_show_confirm') d.show(self)
def test_init(self): widget = gui.InputDialog(title='testing title', message='testing message') self.assertIn('testing title', widget.repr()) self.assertIn('testing message', widget.repr()) assertValidHTML(widget.repr())
def open_input_dialog(self, widget): self.inputDialog = gui.InputDialog('Input Dialog', 'Your name?', initial_value='type here', width=500, height=160) self.inputDialog.confirm_value.connect( self.on_input_dialog_confirm) # here is returned the Input Dialog widget, and it will be shown self.inputDialog.show(self)
def open_input_dialog(self): self.inputDialog = gui.InputDialog(500, 160, 'Input Dialog', 'Your name?') self.inputDialog.set_on_confirm_value_listener( self, 'on_input_dialog_confirm') # here is returned the Input Dialog widget, and it will be shown self.inputDialog.show(self)
def _get_new_save_location(self, save_as=False): self.input_dialog = gui.InputDialog("Save location", "Path", width=500, height=160) self.input_dialog.set_on_confirm_value_listener( self.change_save_location, save_as) self.input_dialog.show(self)
def open_input_dialog(self): self.inputDialog = gui.InputDialog('Input Dialog', 'Your name?', initial_value='type here', width=500, height=160) self.inputDialog.set_on_confirm_value_listener( self, 'on_input_dialog_confirm') # here is returned the Input Dialog widget, and it will be shown self.inputDialog.show(self)
def add_medialist(self,name=None): if self.current_showlist != None: if name is None: d = gui.InputDialog("Add Medialist","File",width=400,height=250) d.set_on_confirm_value_listener(self, 'add_medialist_confirm') d.show(self) else: medialist_name=self.add_medialist_confirm(name) return medialist_name
def copy_medialist(self,to_file=None): if self.current_showlist != None: if self.current_medialist is not None: #from_file= self.current_medialist self.from_file= self.medialists[self.current_medialists_index] if to_file is None: d = gui.InputDialog("Copy Medialist","File",width=400,height=250) d.set_on_confirm_value_listener(self, 'copy_medialist_confirm') d.show(self) else: self.copy_medialist_confirm(to_file)
def new_profile(self,profile): d = gui.InputDialog("New Profile","Name",width=400,height=250) self.new_profile_template=profile d.set_on_confirm_value_listener(self, 'new_profile_confirm') d.show(self)
def save_chart_pressed(self): self.save_dialog = gui.InputDialog('Save Dialog', 'Give a name to file:', initial_value='Untitled.png', width=500, height=160) self.save_dialog.set_on_confirm_value_listener(self, 'save_dialog_confirm') self.save_dialog.show(self)