def get_font(self):
     font = self._font
     if not font:
         font = Font._from_pango_description(self._gtk_inner_widget.style.font_desc)
     return font
Beispiel #2
0
 def get_font(self):
     font = self._font
     if not font:
         font = Font._from_pango_description(
             self._gtk_title_widget.style.font_desc)
     return font
Beispiel #3
0
#
#		Python GUI - Standard Fonts - Gtk
#

from gi.repository import Gtk
from GUI.Fonts import Font

system_font = Font._from_pango_description(Gtk.Label().get_style().font_desc)
application_font = Font._from_pango_description(Gtk.Entry().get_style().font_desc)