本文整理匯總了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")