本文整理汇总了Python中higwidgets.higboxes.HIGVBox.hide_all方法的典型用法代码示例。如果您正苦于以下问题:Python HIGVBox.hide_all方法的具体用法?Python HIGVBox.hide_all怎么用?Python HIGVBox.hide_all使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类higwidgets.higboxes.HIGVBox
的用法示例。
在下文中一共展示了HIGVBox.hide_all方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: InterfaceEditor
# 需要导入模块: from higwidgets.higboxes import HIGVBox [as 别名]
# 或者: from higwidgets.higboxes.HIGVBox import hide_all [as 别名]
#.........这里部分代码省略.........
self.vbox_left.pack_start(self.profile_box, True, True)
self.profile_box_b = True
log.debug("<<< show :: Profile Edit Mode :: ")
self.profile_box.show_all()
self.profile_box.notebook.put_on_page()
self._create_tooldesign()
self._set_menus_editor(True)
self.profile_box.show()
self.obj = self.profile_box
elif edit == "Wizard" and not self.edit_mode_opt == "Wizard":
log.debug("<<< show :: Wizard Edit Mode - basic mode ")
self._remove_previews()
self.edit_mode_opt = "Wizard"
self._set_menus_editor(True)
bool = self.wizard_box_b == None
self.create_wizard_edit()
if bool:
self.vbox_left.pack_start(self.wizard_box, True, True)
self.wizard_box_b = True
self.wizard_box.show_all()
self.wizard_box.notebook.put_on_page()
self._create_tooldesign()
self.wizard_box.show()
self.obj = self.wizard_box
def _remove_previews(self):
"""
Remove the previews Edit mode
"""
# XXX Lack the toolbars and some ajusts
if self.edit_mode_opt == "Profile":
# self.vbox_left.remove(self.profile_box)
self.profile_box.hide_all()
elif self.edit_mode_opt == "Options":
# self.vbox_left.remove(self.display_frame)
self.display_frame.hide_all()
elif self.edit_mode_opt == "Wizard":
self.wizard_box.hide_all()
def _create_tooldesign(self):
"""
create tooldesign that contains widgets to put
in work area of edit profile
"""
if self._tooldesign == None:
self._tooldesign = ToolDesign()
if self._proprieties == None:
self._proprieties = Proprieties()
if self.notebook.get_n_pages() < 2:
self.notebook.append_page(self._tooldesign, HIGEntryLabel(_("Design")))
self.notebook.append_page(self._proprieties, HIGEntryLabel(_("Proprieties")))
self.notebook.show_all()
if self.edit_mode_opt == "Profile":
obj = self.profile_box
elif self.edit_mode_opt == "Wizard":
obj = self.wizard_box
obj.set_proprieties(self._proprieties)
profilecore = obj.get_profilecore()
self._proprieties.set_profilecore(profilecore)
def __optinlist_from_group(self):
"""
After Select a Option from a group this treeview refresh options lists
that each group contains