本文整理汇总了Python中BaseCompanions.CollectionDTC.applyDesignTimeDefaults方法的典型用法代码示例。如果您正苦于以下问题:Python CollectionDTC.applyDesignTimeDefaults方法的具体用法?Python CollectionDTC.applyDesignTimeDefaults怎么用?Python CollectionDTC.applyDesignTimeDefaults使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseCompanions.CollectionDTC
的用法示例。
在下文中一共展示了CollectionDTC.applyDesignTimeDefaults方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: applyDesignTimeDefaults
# 需要导入模块: from BaseCompanions import CollectionDTC [as 别名]
# 或者: from BaseCompanions.CollectionDTC import applyDesignTimeDefaults [as 别名]
def applyDesignTimeDefaults(self, params, method=None):
if method is None:
method = self.insertionMethod
if (method in ('AddWindow', 'AddSizer') and params[0] == 'None') or \
(method == 'Insert' and params[1] == 'None'):
defaults = self.designTimeDefaults(params, method)
if method == 'Insert':
proportion = defaults[2]
import warnings; warnings.warn('Insert called with BlankSizer')
else:
proportion = defaults[1]
self.control.AddSizer(BlankSizer(), proportion, defaults['flag'],
defaults['border'])
else:
CollectionDTC.applyDesignTimeDefaults(self, params, method)
示例2: applyDesignTimeDefaults
# 需要导入模块: from BaseCompanions import CollectionDTC [as 别名]
# 或者: from BaseCompanions.CollectionDTC import applyDesignTimeDefaults [as 别名]
def applyDesignTimeDefaults(self, params, method=None):
dtparams = {}; dtparams.update(params)
if 'mask' in dtparams and dtparams['mask'] == 'wx.NullBitmap':
del dtparams['mask']
CollectionDTC.applyDesignTimeDefaults(self, dtparams, method)