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