コード例 #1
0
ファイル: Colors.py プロジェクト: mnabeelp/PyGUI
#
#   Python GUI - Color constants and functions - Gtk
#

from gtk import Style
from GUI import Color

rgb = Color

s = Style()
selection_forecolor = Color._from_gdk_color(s.fg[3])
selection_backcolor = Color._from_gdk_color(s.bg[3])

コード例 #2
0
 def get_color(self):
     gdk_color = self._gtk_title_widget.style.fg[gtk.STATE_NORMAL]
     return Color._from_gdk_color(gdk_color)