本文整理汇总了Python中efl.elementary.entry.Entry.text_style_user_push方法的典型用法代码示例。如果您正苦于以下问题:Python Entry.text_style_user_push方法的具体用法?Python Entry.text_style_user_push怎么用?Python Entry.text_style_user_push使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类efl.elementary.entry.Entry
的用法示例。
在下文中一共展示了Entry.text_style_user_push方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: populate
# 需要导入模块: from efl.elementary.entry import Entry [as 别名]
# 或者: from efl.elementary.entry.Entry import text_style_user_push [as 别名]
def populate(self):
# main vertical box
box = Box(self, size_hint_weight = EXPAND_BOTH)
self.resize_object_add(box)
box.show()
### header
fr = Frame(self, style='outdent_bottom', size_hint_weight=EXPAND_HORIZ,
size_hint_align=FILL_BOTH)
box.pack_end(fr)
fr.show()
tb = Table(self, padding=(3,3),
size_hint_weight=EXPAND_HORIZ, size_hint_align=FILL_BOTH)
fr.content = tb
tb.show()
# main menu button
bt = MainMenuButton(self.app)
tb.pack(bt, 0, 0, 1, 1)
bt.show()
# editable description entry
self.caption_label = EditableDescription(self.app)
tb.pack(self.caption_label, 1, 0, 1, 1)
self.caption_label.show()
# status label + button
lb = Entry(self, editable=False, line_wrap=ELM_WRAP_NONE)
lb.text_style_user_push("DEFAULT='align=center'")
tb.pack(lb, 2, 0, 1, 1)
lb.show()
self.status_label = lb
# branch selector
self.branch_selector = Hoversel(self, text='HEAD', disabled=True,
content=SafeIcon(self, 'git-branch'))
self.branch_selector.callback_selected_add(self.branch_selected_cb)
tb.pack(self.branch_selector, 3, 0, 1, 1)
self.branch_selector.show()
# pull button
bt = Button(self, text='Pull', disabled=True,
content=SafeIcon(self, 'git-pull'))
bt.callback_clicked_add(self.app.action_pull)
tb.pack(bt, 4, 0, 1, 1)
bt.show()
self.pull_btn = bt
# push button
bt = Button(self, text='Push', disabled=True,
content=SafeIcon(self, 'git-push'))
bt.callback_clicked_add(self.app.action_push)
tb.pack(bt, 5, 0, 1, 1)
bt.show()
self.push_btn = bt
### Tree panes
panes1 = Panes(self, content_left_min_size=200, content_left_size=0.0,
size_hint_weight=EXPAND_BOTH, size_hint_align=FILL_BOTH)
box.pack_end(panes1)
panes1.show()
# the sidebar on the left
self.sidebar = Sidebar(self, self.app)
panes1.part_content_set('left', self.sidebar)
### Main content (left + right panes)
panes2 = Panes(self, content_left_size=0.5,
size_hint_weight=EXPAND_BOTH, size_hint_align=FILL_BOTH)
panes1.part_content_set('right', panes2)
panes2.show()
# the dag graph in the center
self.graph = DagGraph(self, self.app)
panes2.part_content_set('left', self.graph)
# the diff viewer on the right
self.diff_view = DiffViewer(self, self.app)
self.diff_view.size_hint_weight = EXPAND_BOTH
self.diff_view.size_hint_align = 0.0, 0.0
panes2.part_content_set('right', self.diff_view)
#
self.show()