本文整理汇总了Python中Core.Dialogs.toast方法的典型用法代码示例。如果您正苦于以下问题:Python Dialogs.toast方法的具体用法?Python Dialogs.toast怎么用?Python Dialogs.toast使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Core.Dialogs
的用法示例。
在下文中一共展示了Dialogs.toast方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: showInTable
# 需要导入模块: from Core import Dialogs [as 别名]
# 或者: from Core.Dialogs import toast [as 别名]
def showInTable(self):
try:
if uni.tableType in ["0", "1", "2", "3", "4", "9"]:
getMainTable().refresh(self.getCurrentDirectoryPath())
else:
Dialogs.toast(translate("Tables", "Please edit query and click to Apply Query Icon."))
getMainWindow().StatusBar.setTableInfo(uni.getTableTypesNames()[uni.tableType] + str(" : ~ "))
except:
ReportBug.ReportBug()
示例2: dropEvent
# 需要导入模块: from Core import Dialogs [as 别名]
# 或者: from Core.Dialogs import toast [as 别名]
def dropEvent(self, _e):
try:
btn = _e.source()
objectName = str(btn.objectName())
if self.containerKey == "right" and objectName not in getMainTable().getWritableColumnKeys():
Dialogs.toast(translate("SpecialTools", "This Column Is Readonly!"),
translate("SpecialTools", "You should move here writable columns!"))
else:
if objectName.find("Concatenate") == -1:
self.addToWidgetList(btn)
else:
if btn not in self.widgetList:
if self == self.parent().saccAvailable:
self.addToWidgetList(btn)
elif self == self.parent().saccLeft:
child = SpecialActionsCommandButton(self.parent(), self.createNextConcatenateObjectName())
self.addToWidgetList(child)
elif self == self.parent().saccRight:
pass
else:
self.addToWidgetList(btn) #
_e.accept()
except:
ReportBug.ReportBug()