本文整理匯總了Python中Utils.Config.FPS方法的典型用法代碼示例。如果您正苦於以下問題:Python Config.FPS方法的具體用法?Python Config.FPS怎麽用?Python Config.FPS使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Utils.Config
的用法示例。
在下文中一共展示了Config.FPS方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Config
# 需要導入模塊: from Utils import Config [as 別名]
# 或者: from Utils.Config import FPS [as 別名]
__author__ = 'beniamin'
from Utils.Config import *
window = Config('window', __file__)
window.width = 1200
window.height = 800
window.bg_color = (0, 0, 0)
window.FPS = 120
window.def_font = Config('window.def_font', __file__)
window.def_font.size = 15
window.def_font.color = (255, 255, 255)
window.def_font.name = "Sans"
window.small_font = Config('window.small_font', __file__)
window.small_font.size = 10
window.small_font.color = (255, 255, 255)
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)