问题描述
我试图添加样式SpTextPresenter
(的菲罗9,规格2,视窗10 )。我有MyApp
类别:
SpApplication subclass: #MyApp
instanceVariableNames: ''
classVariableNames: ''
package: 'MyAdm'
与类方法uniqueInstance
(和类实例 - “单” 想法是从复制的LibC粘贴):
uniqueInstance
^ uniqueInstance ifNil: [ uniqueInstance := self new ]
和实例方法initialize
:
initialize
super initialize.
self useBackend: #Morphic with: MyAppConfiguration new.
和MyAppConfiguration
类别:
SpMorphicConfiguration subclass: #MyAppConfiguration
instanceVariableNames: ''
classVariableNames: ''
package: 'MyAdm'
与方法configure
:
configure: anApplication
super configure: anApplication.
self styleSheet addClass: 'text' with: [ :style |
style addPropertyFontWith: [ :font |
font bold: true;
size: 20;
name: 'Courier'
].
].
某处在我的代码:
.....
"presenterClass is an argument which is a class of my presenter"
presenter := MyApp uniqueInstance newPresenter: presenterClass.
presenter openWithSpec.
presenter updatePresenter.
....
我有几个演示者,但其中一个确实包含在 text
方法中创建的 initializePresenters
变量:
initializePresenters
text := self newText addStyle: 'text'.
super initializePresenters
但结果是坏 - {的{1}}的标准视图,其中一标准字体,没有什么改变!错误在哪里?我想在text
({的{1}}型)我的自定义字体看到的。
修改:顺便说一句,https://pypi.org/project/django-simple-history/不工作太
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)