本文整理汇总了Python中outwiker.gui.stcstyle.StcStyle.tostr方法的典型用法代码示例。如果您正苦于以下问题:Python StcStyle.tostr方法的具体用法?Python StcStyle.tostr怎么用?Python StcStyle.tostr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类outwiker.gui.stcstyle.StcStyle
的用法示例。
在下文中一共展示了StcStyle.tostr方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testToString_05
# 需要导入模块: from outwiker.gui.stcstyle import StcStyle [as 别名]
# 或者: from outwiker.gui.stcstyle.StcStyle import tostr [as 别名]
def testToString_05 (self):
style = StcStyle(fore=u"#AAAAAA", back=u"#BBBBBB", bold=True)
self.assertEqual (style.tostr(), u"fore:#AAAAAA,back:#BBBBBB,bold")
示例2: testToString_07
# 需要导入模块: from outwiker.gui.stcstyle import StcStyle [as 别名]
# 或者: from outwiker.gui.stcstyle.StcStyle import tostr [as 别名]
def testToString_07 (self):
style = StcStyle(fore=u"", back=u"", bold=True, italic=True)
self.assertEqual (style.tostr(), u"bold,italic")
示例3: testToString_04
# 需要导入模块: from outwiker.gui.stcstyle import StcStyle [as 别名]
# 或者: from outwiker.gui.stcstyle.StcStyle import tostr [as 别名]
def testToString_04 (self):
style = StcStyle(bold=True, italic=True, underline=True)
self.assertEqual (style.tostr(), u"fore:#000000,back:#FFFFFF,bold,italic,underline")
示例4: testToString_02
# 需要导入模块: from outwiker.gui.stcstyle import StcStyle [as 别名]
# 或者: from outwiker.gui.stcstyle.StcStyle import tostr [as 别名]
def testToString_02 (self):
style = StcStyle(bold=True)
self.assertEqual (style.tostr(), u"fore:#000000,back:#FFFFFF,bold")
示例5: testToString_01
# 需要导入模块: from outwiker.gui.stcstyle import StcStyle [as 别名]
# 或者: from outwiker.gui.stcstyle.StcStyle import tostr [as 别名]
def testToString_01 (self):
style = StcStyle()
self.assertEqual (style.tostr(), u"fore:#000000,back:#FFFFFF")
示例6: testToString_06
# 需要导入模块: from outwiker.gui.stcstyle import StcStyle [as 别名]
# 或者: from outwiker.gui.stcstyle.StcStyle import tostr [as 别名]
def testToString_06(self):
style = StcStyle(fore="", back="", bold=True)
self.assertEqual(style.tostr(), "bold")
示例7: testToString_03
# 需要导入模块: from outwiker.gui.stcstyle import StcStyle [as 别名]
# 或者: from outwiker.gui.stcstyle.StcStyle import tostr [as 别名]
def testToString_03(self):
style = StcStyle(bold=True, italic=True)
self.assertEqual(style.tostr(), "fore:#000000,back:#FFFFFF,bold,italic")