def applyPressed(self, btn): selectKB = self.keyboardList.selected_item_get().text print selectKB print KeyboardLayouts[selectKB] cmd = ecore.Exe("setxkbmap %s"%(KeyboardLayouts[selectKB])) compPop = StandardPopup(self, "%s keymap applied for current session."%selectKB, 'ok', size_hint_weight=EXPAND_BOTH) compPop.show()
def fileSelected(self, fs, ourFile): self.flip.go(ELM_FLIP_ROTATE_YZ_CENTER_AXIS) ourPath, themeFile = os.path.split(ourFile) if ourFile[-4:] == ".edj": shutil.copy2(ourFile, "%s/.e/e/themes"%UserHome) self.addTheme(themeFile, "%s/.e/e/themes/"%UserHome) else: errorPop = StandardPopup(self, "%s does not appear to be a valid theme file."%themeFile, 'dialog-warning', size_hint_weight=EXPAND_BOTH) errorPop.show()
def fileSelected(self, fs, ourFile): self.flip.go(ELM_FLIP_ROTATE_YZ_CENTER_AXIS) ourPath, themeFile = os.path.split(ourFile) if ourFile[-4:] == ".edj": shutil.copy2(ourFile, "%s/.e/e/themes" % UserHome) self.addTheme(themeFile, "%s/.e/e/themes/" % UserHome) else: errorPop = StandardPopup( self, "%s does not appear to be a valid theme file." % themeFile, 'dialog-warning', size_hint_weight=EXPAND_BOTH) errorPop.show()
def listItemSelected(self, ourList, ourItem): ourPopup = StandardPopup(self, "You selected %s" % ourItem.text, "ok") ourPopup.show()
def buttonPressed(self, btn): ourPopup = StandardPopup(self, "Press OK to close this message.", "ok") ourPopup.show()
def listItemSelected(self, ourList, ourItem): ourPopup = StandardPopup(self, "You selected %s" % ourItem.data["itemName"], "ok") ourPopup.show()
def listItemSelected(self, ourList, ourItem): ourPopup = StandardPopup(self, "You selected %s"%ourItem.text, "ok") ourPopup.show()
def listItemSelected(self, ourList, ourItem): ourPopup = StandardPopup(self, "You selected %s"%ourItem.data["itemName"], "ok") ourPopup.show()