Closed dawkot closed 5 years ago
You can use .setForegroundColor(color=wColor).
.setForegroundColor(color=wColor)
This can be a hex value (eg. 0xFFFFFF) or a constant as described here.
0xFFFFFF
import wNim let app = App() let frame = Frame(title="Hello World", size=(400, 300)) var text = StaticText(frame, label="Hello, World!") text.setForegroundColor(color=wRed) frame.center() frame.show() app.mainLoop()
Thank you.
You can use
.setForegroundColor(color=wColor)
.This can be a hex value (eg.
0xFFFFFF
) or a constant as described here.