本文整理汇总了Python中promogest.ui.GladeWidget.GladeWidget.placeWindow方法的典型用法代码示例。如果您正苦于以下问题:Python GladeWidget.placeWindow方法的具体用法?Python GladeWidget.placeWindow怎么用?Python GladeWidget.placeWindow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类promogest.ui.GladeWidget.GladeWidget
的用法示例。
在下文中一共展示了GladeWidget.placeWindow方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: showPrintingDialog
# 需要导入模块: from promogest.ui.GladeWidget import GladeWidget [as 别名]
# 或者: from promogest.ui.GladeWidget.GladeWidget import placeWindow [as 别名]
def showPrintingDialog():
if self.__cancelOperation:
# Operation has been cancelled, do nothing
return
progressDialog.getTopLevel().destroy()
gobject.source_remove(self.__pulseSourceTag)
printDialog = GladeWidget(root='records_print_dialog',
path='records_print_dialog.glade',
callbacks_proxy=self)
printDialog.getTopLevel().set_transient_for(self.getTopLevel())
printDialog.getTopLevel().set_modal(True)
if "/" in self._pdfName:
self._pdfName = self._pdfName.split("/")[1]
printDialog.records_print_dialog_description_label.set_text(
self._pdfName)
printDialog.email_destinatario_entry.set_text(self.email)
printDialog.records_print_dialog_size_label.set_text(str(
len(self.__pdfReport) / 1024) + ' Kb')
printDialog.placeWindow(printDialog.getTopLevel())
printDialog.getTopLevel().show_all()
self.printDialog = printDialog
return False
示例2: placeWindow
# 需要导入模块: from promogest.ui.GladeWidget import GladeWidget [as 别名]
# 或者: from promogest.ui.GladeWidget.GladeWidget import placeWindow [as 别名]
def placeWindow(self, window):
GladeWidget.placeWindow(self, window)
if (self.width is None and self.height is None and
self.left is None and self.top is None):
window.maximize()