def init(self): self.refreshingInterface = False self.interfaceListSignal = GObject.GObject() self.interfaceListSignal.connect('interfaceListMsg', self.readInterfaceList) self.initInterfaceList() #create New Form #acces point name GuiComponent.createLabel(self._('AP name'),[0,1,0,1], self, aligment='right') #access point name set text self.apName = Gtk.Entry() GuiComponent.createEntry(self.apName, [1,3,0,1],self, "") #acces point password GuiComponent.createLabel(self._('Password'),[0,1,1,2],self, aligment='right') #access point password set text self.apPassword = Gtk.Entry() GuiComponent.createEntry(self.apPassword, [1,3,1,2],self,"",False) #Show password self.showPassword = Gtk.CheckButton(self._("Show password"),self) GuiComponent.createCheckButton(self.showPassword, [1,3,2,3],self , self.showHidePasswd, True) #wifi interface label GuiComponent.createLabel(self._('Wifi interface'),[0,1,3,4],self, aligment='right') #wifi interface Combobox self.interface1ComboBox = Gtk.ComboBox.new_with_model(self.interfaceListStore) GuiComponent.createComboBox(self.interface1ComboBox, [1,3,3,4],self , None) #interface with internet Label GuiComponent.createLabel(self._('Interface with Internet'),[0,1,4,5],self, aligment='right') #interface with internet Combobox self.interface2ComboBox = Gtk.ComboBox.new_with_model(self.interfaceListStore) GuiComponent.createComboBox( self.interface2ComboBox, [1,3,4,5], self, None) #refresh interface list button GuiComponent.createButton(self._('Refresh'),[2,3,5,6], self, self.refreshInterfaceList) #Save and Create AP GuiComponent.createButton(self._("Only Create"), [1,2,9,10], self, self.onlyCreateAction) GuiComponent.createButton(self._("Save and Create"), [2,3,9,10], self, self.saveCreateAction)
def init(self): self.refreshingInterface = False self.interfaceListSignal = GObject.GObject() self.interfaceListSignal.connect('interfaceListMsg', self.readInterfaceList) self.initInterfaceList() #create New Form #acces point name GuiComponent.createLabel(self._('AP name'), [0, 1, 0, 1], self, aligment='right') #access point name set text self.apName = Gtk.Entry() GuiComponent.createEntry(self.apName, [1, 3, 0, 1], self, "") #acces point password GuiComponent.createLabel(self._('Password'), [0, 1, 1, 2], self, aligment='right') #access point password set text self.apPassword = Gtk.Entry() GuiComponent.createEntry(self.apPassword, [1, 3, 1, 2], self, "", False) #Show password self.showPassword = Gtk.CheckButton(self._("Show password"), self) GuiComponent.createCheckButton(self.showPassword, [1, 3, 2, 3], self, self.showHidePasswd, True) #wifi interface label GuiComponent.createLabel(self._('Wifi interface'), [0, 1, 3, 4], self, aligment='right') #wifi interface Combobox self.interface1ComboBox = Gtk.ComboBox.new_with_model( self.interfaceListStore) GuiComponent.createComboBox(self.interface1ComboBox, [1, 3, 3, 4], self, None) #interface with internet Label GuiComponent.createLabel(self._('Interface with Internet'), [0, 1, 4, 5], self, aligment='right') #interface with internet Combobox self.interface2ComboBox = Gtk.ComboBox.new_with_model( self.interfaceListStore) GuiComponent.createComboBox(self.interface2ComboBox, [1, 3, 4, 5], self, None) #refresh interface list button GuiComponent.createButton(self._('Refresh'), [2, 3, 5, 6], self, self.refreshInterfaceList) #Save and Create AP GuiComponent.createButton(self._("Only Create"), [1, 2, 9, 10], self, self.onlyCreateAction) GuiComponent.createButton(self._("Save and Create"), [2, 3, 9, 10], self, self.saveCreateAction)
def init(self): #language label GuiComponent.createLabel(self._('Language'),[0,1,0,1],self, aligment='right') #init language comboBox self.createLanguageListStore() self.languageComboBox = Gtk.ComboBox.new_with_model(self.languageListStore) defaultPosition = self.setting['language'].getLanguageList().index(self.setting['userSetting'].language['name']) GuiComponent.createComboBox(self.languageComboBox, [1,3,0,1],self , defaultPosition) #Automatic check update GuiComponent.createLabel(self._('Automatic update'),[0,1,1,2],self, aligment='right') GuiComponent.createSwitchButton([2,3,1,2], self, self.automaticCheckUpdate, self.setting['userSetting'].version['autoCheck']) #save GuiComponent.createButton(self._('Save'),[2,3,9,10], self, self.saveSetting)