本文整理汇总了Python中guiqwt.plot.ImageDialog.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ImageDialog.__init__方法的具体用法?Python ImageDialog.__init__怎么用?Python ImageDialog.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类guiqwt.plot.ImageDialog
的用法示例。
在下文中一共展示了ImageDialog.__init__方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from guiqwt.plot import ImageDialog [as 别名]
# 或者: from guiqwt.plot.ImageDialog import __init__ [as 别名]
def __init__(self, parent, wintitle=None, options=None, resize_to=None):
if wintitle is None:
wintitle = _("Rotate & Crop")
ImageDialog.__init__(self, wintitle=wintitle, edit=True,
toolbar=False, options=options, parent=parent)
if resize_to is not None:
width, height = resize_to
self.resize(width, height)
self.accepted.connect(self.accept_changes)
self.rejected.connect(self.reject_changes)
示例2: __init__
# 需要导入模块: from guiqwt.plot import ImageDialog [as 别名]
# 或者: from guiqwt.plot.ImageDialog import __init__ [as 别名]
def __init__(self, parent=None, designMode=False, toolbar=True,
stackMode='deltatime', buffersize=512, options=None, **kwargs):
"""see :class:`guiqwt.plot.ImageDialog` for other valid initialization
parameters"""
defaultOptions = dict(lock_aspect_ratio=False)
if options is not None:
defaultOptions.update(options)
ImageDialog.__init__(self, parent=parent, toolbar=toolbar,
options=defaultOptions, **kwargs)
TaurusBaseWidget.__init__(self, "TaurusTrend2DDialog")
self.trendItem = None
self.buffersize = buffersize
self._useArchiving = False
self._stackMode = stackMode
self.setStackMode(stackMode)
self.setWindowFlags(Qt.Qt.Widget)
# add some tools
for toolklass in (TaurusModelChooserTool, AutoScrollTool):
self.add_tool(toolklass)
self.get_tool(TaurusModelChooserTool).singleModel = True
self.setModifiableByUser(self._modifiableByUser)
self.setContextMenuPolicy(Qt.Qt.CustomContextMenu)
self.registerConfigDelegate(self.get_tool(AutoScrollTool))