本文整理汇总了Python中Utils.Config.margin方法的典型用法代码示例。如果您正苦于以下问题:Python Config.margin方法的具体用法?Python Config.margin怎么用?Python Config.margin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utils.Config
的用法示例。
在下文中一共展示了Config.margin方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Config
# 需要导入模块: from Utils import Config [as 别名]
# 或者: from Utils.Config import margin [as 别名]
window.small_font.name = "Sans"
main_panel = Config('main_panel', __file__)
main_panel.width = 1000
main_panel.height = 600
main_panel.left = 0
main_panel.top = 0
main_panel.bg_color = (0, 0, 0)
info_panel = Config('info_panel', __file__)
info_panel.width = 200
info_panel.height = 600
info_panel.left = 1000
info_panel.top = 0
info_panel.bg_color = (0, 0, 0)
info_panel.margin = Config('info_panel.margin', __file__)
info_panel.margin.top = 10
info_panel.margin.right = 10
info_panel.margin.bottom = 10
info_panel.margin.left = 10
stats_panel = Config('stats_panel', __file__)
stats_panel.width = 1200
stats_panel.height = 200
stats_panel.left = 0
stats_panel.top = 600
stats_panel.bg_color = (0, 0, 0)
stats_panel.margin = Config('stats_panel.margin', __file__)
stats_panel.margin.top = 10
stats_panel.margin.right = 10
stats_panel.margin.bottom = 10