本文整理汇总了Python中view.View.rotate_counter_clockwise方法的典型用法代码示例。如果您正苦于以下问题:Python View.rotate_counter_clockwise方法的具体用法?Python View.rotate_counter_clockwise怎么用?Python View.rotate_counter_clockwise使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类view.View
的用法示例。
在下文中一共展示了View.rotate_counter_clockwise方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: UPDF
# 需要导入模块: from view import View [as 别名]
# 或者: from view.View import rotate_counter_clockwise [as 别名]
#.........这里部分代码省略.........
self.buttons["zoom_out"] = widgets.ImageToolButton(
os.path.join(comun.ICONDIR, "zoom_out.svg"), os.path.join(comun.ICONDIR, "zoom_out_inactive.svg")
)
self.buttons["zoom_out"].set_can_focus(False)
self.buttons["zoom_out"].set_tooltip_text(_("Zoom out"))
self.buttons["zoom_out"].connect("clicked", self.on_toolbar_clicked, "zoom_out")
toolbar.add(self.buttons["zoom_out"])
#
self.buttons["zoom_reset"] = widgets.ImageToolButton(
os.path.join(comun.ICONDIR, "zoom_reset.svg"), os.path.join(comun.ICONDIR, "zoom_reset_inactive.svg")
)
self.buttons["zoom_reset"].set_can_focus(False)
self.buttons["zoom_reset"].set_tooltip_text(_("Reset zoom"))
self.buttons["zoom_reset"].connect("clicked", self.on_toolbar_clicked, "zoom_reset")
toolbar.add(self.buttons["zoom_reset"])
#
self.buttons["zoom_fit"] = widgets.ImageToolButton(
os.path.join(comun.ICONDIR, "zoom_fit.svg"), os.path.join(comun.ICONDIR, "zoom_fit_inactive.svg")
)
self.buttons["zoom_fit"].set_can_focus(False)
self.buttons["zoom_fit"].set_tooltip_text(_("Fit zoom"))
self.buttons["zoom_fit"].connect("clicked", self.on_toolbar_clicked, "zoom_fit")
toolbar.add(self.buttons["zoom_fit"])
#
self.buttons["rotate_clockwise"] = widgets.ImageToolButton(
os.path.join(comun.ICONDIR, "rotate_clockwise.svg"),
os.path.join(comun.ICONDIR, "rotate_clockwise_inactive.svg"),
)
self.buttons["rotate_clockwise"].set_can_focus(False)
self.buttons["rotate_clockwise"].set_tooltip_text(_("Rotate"))
self.buttons["rotate_clockwise"].connect("clicked", self.on_toolbar_clicked, "rotate_clockwise")
toolbar.add(self.buttons["rotate_clockwise"])
#
self.buttons["rotate_counter_clockwise"] = widgets.ImageToolButton(
os.path.join(comun.ICONDIR, "rotate_counter_clockwise.svg"),
os.path.join(comun.ICONDIR, "rotate_counter_clockwise_inactive.svg"),
)
self.buttons["rotate_counter_clockwise"].set_can_focus(False)
self.buttons["rotate_counter_clockwise"].set_tooltip_text(_("Rotate"))
self.buttons["rotate_counter_clockwise"].connect("clicked", self.on_toolbar_clicked, "rotate_counter_clockwise")
toolbar.add(self.buttons["rotate_counter_clockwise"])
#
self.buttons["insert_pages"] = widgets.ImageToolButton(
os.path.join(comun.ICONDIR, "insert_pages.svg"), os.path.join(comun.ICONDIR, "insert_pages_inactive.svg")
)
self.buttons["insert_pages"].set_can_focus(False)
self.buttons["insert_pages"].set_tooltip_text(_("Insert pages"))
self.buttons["insert_pages"].connect("clicked", self.on_toolbar_clicked, "insert_pages")
toolbar.add(self.buttons["insert_pages"])
#
self.buttons["remove_pages"] = widgets.ImageToolButton(
os.path.join(comun.ICONDIR, "extract_pages.svg"), os.path.join(comun.ICONDIR, "extract_pages_inactive.svg")
)
self.buttons["remove_pages"].set_can_focus(False)
self.buttons["remove_pages"].set_tooltip_text(_("Remove pages"))
self.buttons["remove_pages"].connect("clicked", self.on_toolbar_clicked, "remove_pages")
toolbar.add(self.buttons["remove_pages"])
#
toolbar2 = Gtk.Toolbar()
toolbar2.set_property("visible", True)
toolbar2.set_property("can_focus", False)
toolbar2.set_property("toolbar_style", "icons")
toolbar2.set_property("icon_size", 4)
vbox.pack_start(toolbar2, False, False, 0)
#
self.buttons["bordercolor"] = widgets.ToolButtonColor()