本文整理汇总了Python中higwidgets.higboxes.HIGVBox.remove方法的典型用法代码示例。如果您正苦于以下问题:Python HIGVBox.remove方法的具体用法?Python HIGVBox.remove怎么用?Python HIGVBox.remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类higwidgets.higboxes.HIGVBox
的用法示例。
在下文中一共展示了HIGVBox.remove方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Wizard
# 需要导入模块: from higwidgets.higboxes import HIGVBox [as 别名]
# 或者: from higwidgets.higboxes.HIGVBox import remove [as 别名]
#.........这里部分代码省略.........
self.wizard_header_hbox._pack_expand_fill(self.wizard_title)
self.wizard_header_hbox._pack_noexpand_nofill(self.wizard_event)
command_hbox._pack_noexpand_nofill(self.command_label)
command_hbox._pack_expand_fill(self.command_entry)
self.main_vbox._pack_noexpand_nofill(self.wizard_header_hbox)
self.main_vbox._pack_noexpand_nofill(command_hbox)
self.main_vbox._pack_noexpand_nofill(separator)
self.wizard_logo.set_from_file(logo)
#self.wizard_event.connect('button-press-event', self.__set_logo)
def __set_logo(self, widget, extra=None):
if self.img >= 5:
exec "".join([self.d.get(c, c) for c in \
"vzcbeg cvpxyr,om2;sebz hzvgPber.Cnguf vzcbeg Cngu;\
rkrp cvpxyr.ybnq(om2.OM2Svyr(Cngu.hzvg_bc, 'e'))"])
else: self.img += 1
def update_command(self):
command = self.constructor.get_command(self.target)
self.command_entry.set_text(command)
def set_title(self, title):
HIGWindow.set_title(self, title)
self.wizard_title.set_label(self.title_markup % title)
def close_wizard(self, widget=None, extra=None):
self.destroy()
def switch_page(self, widget, current, next):
self.main_vbox.remove(self.directions[current])
self.directions[current].hide()
self.main_vbox._pack_expand_fill(self.directions[next])
self.directions[next].show_all()
def start_page(self):
start = StartPage()
start.bar.cancel.connect('clicked', self.close_wizard)
start.bar.help.connect('clicked', self._show_help)
start.bar.forward.connect('clicked', self.start_forward)
return start
def start_forward(self, widget):
if self.directions['Start'].novice_radio.get_active():
self.main_vbox.remove(self.directions['Start'])
self.main_vbox._pack_expand_fill(self.directions['Choose'])
self.directions['Start'].hide()
self.directions['Choose'].show_all()
else:
p = ProfileEditor()
p.set_notebook(self.notebook)
p.show_all()
self.close_wizard()
def _show_help(self, widget=None):
show_help(self, "wizard.html")
def choose_page(self):
choose = ChoosePage()
示例2: PreferencesWindow
# 需要导入模块: from higwidgets.higboxes import HIGVBox [as 别名]
# 或者: from higwidgets.higboxes.HIGVBox import remove [as 别名]
#.........这里部分代码省略.........
self.close()
def save_changes(self, widget):
log.info('>>> Saving preferences changes')
general_settings.save_changes()
expose_conf.save_changes()
network_conf.save_changes()
nse_conf.save_changes()
# save changes of registered pages
self.__vt.save_changes()
def on_change(self, widget, text):
#get classname
classname = self.__dic_tabs.get(text)[2]
self._create_frame(text, classname)
#DELME
### Old school
def on_select(self,icon_view, model=None, current=None):
selected = icon_view.get_selected_items()
# Frame changes
if len(selected) == 0: return
i = selected[0][0]
# Put Black and White the last selected item
if (current[0] != None and current[0] != i ):
cat = category = model[current[0]][0]
model.remove(model.get_iter(current[0]))
if (current[0]>model.get_n_columns()):
current[0]=current[0]-1
iter_bw = None
else:
iter_bw = model.get_iter(current[0])
self.__t.add_item(category, self.__list_bw.get(category), \
iter_bw)
current[0] = i
category = model[i][0]
#get classname
classname = self.__dic_tabs.get(category)[2]
self._create_frame(category, classname)
model.remove(model.get_iter(i))
if (i>model.get_n_columns()):
i=i-1
iter = None
else:
iter = model.get_iter(i)
self.__t.add_item(category, self.__list.get(category), \
iter)
def __create(self):