本文整理汇总了Python中efl.elementary.button.Button.hide方法的典型用法代码示例。如果您正苦于以下问题:Python Button.hide方法的具体用法?Python Button.hide怎么用?Python Button.hide使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类efl.elementary.button.Button
的用法示例。
在下文中一共展示了Button.hide方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: FileSelector
# 需要导入模块: from efl.elementary.button import Button [as 别名]
# 或者: from efl.elementary.button.Button import hide [as 别名]
#.........这里部分代码省略.........
self.pack_end(self.fileSelectorBox)
self.pack_end(self.buttonBox)
self.populateBookmarks()
self.createPopup = Popup(self)
self.createPopup.part_text_set("title,text", "Create Folder:")
self.createEn = en = Entry(self, size_hint_weight=EXPAND_HORIZ,
size_hint_align=FILL_HORIZ)
en.single_line_set(True)
en.scrollable_set(True)
en.show()
self.createPopup.content = en
bt = Button(self, text="Create")
bt.callback_clicked_add(self.createFolder)
self.createPopup.part_content_set("button1", bt)
bt2 = Button(self, text="Cancel")
bt2.callback_clicked_add(self.closePopup)
self.createPopup.part_content_set("button2", bt2)
if defaultPopulate:
self.populateFiles(startPath)
def folderOnlySet(self, ourValue):
self.folderOnly = ourValue
if not self.folderOnly:
self.filenameBox.show()
else:
self.filenameBox.hide()
def createFolder(self, obj):
newDir = "%s%s"%(self.currentDirectory, self.createEn.text)
os.makedirs(newDir)
self.closePopup()
self.populateFiles(self.currentDirectory)
def createFolderButtonPressed(self, obj):
self.createEn.text = ""
self.createPopup.show()
self.createEn.select_all()
def closePopup(self, btn=None):
self.createPopup.hide()
def shutdown(self, obj=None):
self._timer.delete()
self.threadedFunction.shutdown()
def sortData(self, btn):
self.sortReverse = not self.sortReverse
if self.sortReverse:
self.fileSortButton.text = u"⬇ Name"
else:
self.fileSortButton.text = u"⬆ Name"
self.populateFiles(self.currentDirectory)
def populateBookmarks(self):
con = Icon(self, size_hint_weight=EXPAND_BOTH,
size_hint_align=FILL_BOTH)