本文整理汇总了Python中tkwidget.MfxDialog.initKw方法的典型用法代码示例。如果您正苦于以下问题:Python MfxDialog.initKw方法的具体用法?Python MfxDialog.initKw怎么用?Python MfxDialog.initKw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tkwidget.MfxDialog
的用法示例。
在下文中一共展示了MfxDialog.initKw方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
strings=[_("&OK"), _("&Apply"), _("&Cancel"),]
kw = KwStruct(kw,
strings=strings,
default=0,
)
return MfxDialog.initKw(self, kw)
示例2: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
strings=[_('&Start'), _('&Play'), _('&New'), 'sep', _('&Close'),]
kw = KwStruct(kw,
strings=strings,
default=0,
)
return MfxDialog.initKw(self, kw)
示例3: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
kw = KwStruct(kw,
strings=(None, None, _("&Cancel"),), default=0,
resizable=True,
separator=True,
)
return MfxDialog.initKw(self, kw)
示例4: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
kwdefault(kw,
strings=(_("&Select"), _("&Rules"), _("&Cancel"),),
default=0,
width=600, height=400,
)
return MfxDialog.initKw(self, kw)
示例5: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
kw = KwStruct(kw,
strings=(_("&OK"),),
default=0,
separator=True,
)
return MfxDialog.initKw(self, kw)
示例6: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
kw = KwStruct(kw,
strings=(_('&OK'), _('&Cancel')),
default=0,
separator=False,
)
return MfxDialog.initKw(self, kw)
示例7: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
kw = KwStruct(kw,
strings=(_("&OK"), _("&Cancel")),
default=-1,
resizable=False,
separator=False,
)
return MfxDialog.initKw(self, kw)
示例8: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
kw = KwStruct(kw,
strings=(_('&OK'),),
default=0,
image=self.app.gimages.logos[4],
separator=True,
)
return MfxDialog.initKw(self, kw)
示例9: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
kw = KwStruct(kw,
strings=(_("&OK"), _("&Cancel")),
default=0,
padx=10, pady=10,
buttonpadx=10, buttonpady=5,
)
return MfxDialog.initKw(self, kw)
示例10: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
kw = KwStruct(kw,
strings = ((_("&Info..."), 10), 'sep',
_("&Load"), _("&Cancel"),),
default=0,
resizable=True,
)
return MfxDialog.initKw(self, kw)
示例11: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
kwdefault(kw,
strings=(_("&Load"), _("&Cancel"), _("&Info..."),),
default=1,
resizable=1,
padx=10, pady=10,
width=600, height=400,
)
return MfxDialog.initKw(self, kw)
示例12: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
kw = KwStruct(kw,
strings=(_("&OK"), _("&Cancel")), default=0,
separator=False,
resizable=False,
padx=10, pady=10,
buttonpadx=10, buttonpady=5,
)
return MfxDialog.initKw(self, kw)
示例13: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
kwdefault(kw,
strings=(_('&OK'), _('&Solid color...'), _('&Cancel'),),
default=0,
resizable=1,
padx=10, pady=10,
width=600, height=400,
)
return MfxDialog.initKw(self, kw)
示例14: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
kw = KwStruct(kw,
strings=((_("&Solid color..."), 10),
'sep', _("&OK"), _("&Cancel"),),
default=0,
resizable=True,
font=None,
padx=10, pady=10,
)
return MfxDialog.initKw(self, kw)
示例15: initKw
# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import initKw [as 别名]
def initKw(self, kw):
strings = [_("&Start"), _("&Play"), _("&New"), _("&Close")]
kw = KwStruct(kw, strings=strings, default=0)
return MfxDialog.initKw(self, kw)