コード例 #1
0
#
#   Python GUI - Color constants and functions - Cocoa
#

from AppKit import NSColor
from GUI import Color

rgb = Color

selection_forecolor = Color._from_ns_color(NSColor.selectedTextColor())
selection_backcolor = Color._from_ns_color(NSColor.selectedTextBackgroundColor())
コード例 #2
0
 def get_color(self):
     return Color._from_ns_color(self._ns_inner_view.textColor())
コード例 #3
0
ファイル: Colors.py プロジェクト: mnabeelp/PyGUI
#
#   Python GUI - Color constants and functions - Cocoa
#

from AppKit import NSColor
from GUI import Color

rgb = Color

selection_forecolor = Color._from_ns_color(NSColor.selectedTextColor())
selection_backcolor = Color._from_ns_color(
    NSColor.selectedTextBackgroundColor())
コード例 #4
0
 def get_color(self):
     return Color._from_ns_color(self._ns_inner_view.textColor())