Hello izidor,
I did the same thing you described above. I changed the preferences.glade file. I updated the preferences.py file . I updated the editor.py . And i added a default value to the core/init.py > Instead of the literal in the "self.textview.modify_font(pango.FontDescription('sans bold 15'))" . I added as "self.textview.modify_font(pango.FontDescription(self.config.get(font_name)))" , where as the problem lies here. It say that no global variable font_name is existing. My question is how do we get the config variable font_name from which we have set it in preferences.py
Error :
File "/home/abhi/mygtg/gtg/GTG/gtk/editor/editor.py", line 106, in __init__
self.textview.modify_font(self.config.get(font_name))
NameError: global name 'font_name' is not defined
Hello izidor, modify_ font(pango. FontDescription ('sans bold 15'))" . I added as "self.textview. modify_ font(pango. FontDescription (self.config. get(font_ name))) " , where as the problem lies here. It say that no global variable font_name is existing. My question is how do we get the config variable font_name from which we have set it in preferences.py
I did the same thing you described above. I changed the preferences.glade file. I updated the preferences.py file . I updated the editor.py . And i added a default value to the core/init.py > Instead of the literal in the "self.textview.
Error :
File "/home/ abhi/mygtg/ gtg/GTG/ gtk/editor/ editor. py", line 106, in __init__ textview. modify_ font(self. config. get(font_ name))
self.
NameError: global name 'font_name' is not defined
Best