def update_config(self): self.server_entry.set_text(self.config["ip"]) self.user_entry.set_text(self.config["username"]) self.password_entry.set_text(self.config["password"]) self.port_spinbutton.set_value(float(self.config["port"])) self.mount_point_entry.set_text(self.config["mount"]) OutputUI.update_config(self)
def get_config(self): self.config["ip"] = self.server_entry.get_text() self.config["username"] = self.user_entry.get_text() self.config["password"] = self.password_entry.get_text() self.config["port"] = int(self.port_spinbutton.get_value()) OutputUI.get_config(self) return self.config
def __init__(self): OutputUI.__init__(self) self.interface.add_from_file(UI_DIR + "/output/fileoutput.ui") self.box = self.interface.get_object("file_box") self.config["location"] = "default.ogg" self.button = SaveButton() self.box.attach(self.button, 1, 2, 0, 1)
def __init__(self): OutputUI.__init__(self) self.interface.add_from_file(UI_DIR + "/output/fgdpoutput.ui") self.server_entry = self.interface.get_object("server_entry") self.user_entry = self.interface.get_object("user_entry") self.port_spinbutton = self.interface.get_object("port_spinbutton") self.password_entry = self.interface.get_object("password_entry") self.box = self.interface.get_object("fgdp_box") self.config["location"] = ""
def __init__(self): OutputUI.__init__(self)
def update_config(self): self.button.set_filename(self.config["location"]) OutputUI.update_config(self)
def get_config(self): self.config["location"] = self.button.get_filename() OutputUI.get_config(self) return self.config