本文整理汇总了Python中MaKaC.conference.CategoryManager.getRightMargin方法的典型用法代码示例。如果您正苦于以下问题:Python CategoryManager.getRightMargin方法的具体用法?Python CategoryManager.getRightMargin怎么用?Python CategoryManager.getRightMargin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MaKaC.conference.CategoryManager
的用法示例。
在下文中一共展示了CategoryManager.getRightMargin方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from MaKaC.conference import CategoryManager [as 别名]
# 或者: from MaKaC.conference.CategoryManager import getRightMargin [as 别名]
def __init__(self, conference):
if conference.getId() == "default":
#Best values for CERN printing service
self.__topMargin = 1.6
self.__bottomMargin = 1.1
self.__leftMargin = 1.6
self.__rightMargin = 1.4
self.__marginColumns = 1.0
self.__marginRows = 0.0
self._pageSize = "A4"
self._drawDashedRectangles = True
else:
from MaKaC.conference import CategoryManager
defaultConferencePDFOptions = CategoryManager().getDefaultConference().getBadgeTemplateManager().getPDFOptions()
self.__topMargin = defaultConferencePDFOptions.getTopMargin()
self.__bottomMargin = defaultConferencePDFOptions.getBottomMargin()
self.__leftMargin = defaultConferencePDFOptions.getLeftMargin()
self.__rightMargin = defaultConferencePDFOptions.getRightMargin()
self.__marginColumns = defaultConferencePDFOptions.getMarginColumns()
self.__marginRows = defaultConferencePDFOptions.getMarginRows()
self._pageSize = defaultConferencePDFOptions.getPagesize()
self._drawDashedRectangles = defaultConferencePDFOptions.getDrawDashedRectangles()