Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 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()
Exemplo n.º 3
0
 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()
Exemplo n.º 4
0
 def listItemSelected(self, ourList, ourItem):
     ourPopup = StandardPopup(self, "You selected %s" % ourItem.text, "ok")
     ourPopup.show()
Exemplo n.º 5
0
 def buttonPressed(self, btn):
     ourPopup = StandardPopup(self, "Press OK to close this message.", "ok")
     ourPopup.show()
Exemplo n.º 6
0
 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()
Exemplo n.º 8
0
 def listItemSelected(self, ourList, ourItem):
     ourPopup = StandardPopup(self, "You selected %s"%ourItem.data["itemName"], "ok")
     ourPopup.show()
Exemplo n.º 9
0
 def buttonPressed(self, btn):
     ourPopup = StandardPopup(self, "Press OK to close this message.", "ok")
     ourPopup.show()