本文整理汇总了Python中AppKit.NSFont.userFixedPitchFontOfSize_方法的典型用法代码示例。如果您正苦于以下问题:Python NSFont.userFixedPitchFontOfSize_方法的具体用法?Python NSFont.userFixedPitchFontOfSize_怎么用?Python NSFont.userFixedPitchFontOfSize_使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppKit.NSFont
的用法示例。
在下文中一共展示了NSFont.userFixedPitchFontOfSize_方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: init
# 需要导入模块: from AppKit import NSFont [as 别名]
# 或者: from AppKit.NSFont import userFixedPitchFontOfSize_ [as 别名]
def init(self):
self = super(PyInterpreter, self).init()
if self is None:
return None
self._font = NSFont.userFixedPitchFontOfSize_(10)
self._historyLength = 50
self._history = [u""]
self._historyView = 0
self._characterIndexForInput = 0
self._stdin = PseudoUTF8Input(self._nestedRunLoopReaderUntilEOLchars_)
self._stderr = PseudoUTF8Output(self.writeStderr_)
self._stdout = PseudoUTF8Output(self.writeStdout_)
self._isInteracting = False
self._console = AsyncInteractiveConsole()
self._interp = self._console.asyncinteract(write=self.writeCode_).next
self._autoscroll = True
return self
示例2: init
# 需要导入模块: from AppKit import NSFont [as 别名]
# 或者: from AppKit.NSFont import userFixedPitchFontOfSize_ [as 别名]
def init(self):
self = super().init()
if self is None:
return None
self._font = NSFont.userFixedPitchFontOfSize_(10)
self._historyLength = 50
self._history = ['']
self._historyView = 0
self._characterIndexForInput = 0
self._stdin = PseudoUTF8Input(self._nestedRunLoopReaderUntilEOLchars_)
self._stderr = PseudoUTF8Output(self.writeStderr_)
self._stdout = PseudoUTF8Output(self.writeStdout_)
self._isInteracting = False
self._console = AsyncInteractiveConsole()
self._interp = self._console.asyncinteract(
write=self.writeCode_,
banner="Python %s in %s\n%s\n" % (
sys.version,
NSBundle.mainBundle().objectForInfoDictionaryKey_('CFBundleName'),
'Type "help", "copyright", "credits" or "license" for more information.'
)
).__next__
self._autoscroll = True
return self