Eto.forms.GroupBox.TextColor

hi!
i search to undertsand how i can use the documentation of Eto. I think it will help me to understand how the python syntax would be done!

i found how i can change the color of the title of a GroupBox, but now it ask me a color, not a str or tuple… i search but where can i find what is a color in python, i tried rgb(255,0,0), Red.

what is the way?

        self.groupbox_surface = forms.GroupBox()
        self.groupbox_surface.Text = 'Surface'
        self.groupbox_surface.TextColor=??????????????

hi @onlyforpeace,

you might import this:

import System
from System.Drawing import Color

then in your code you can choose known color names or create your own with RGB:

red = Color.Red 
red = Color.FromArgb(255, 0, 0)

_
c.

1 Like

Thank you!!