rawpython / remi

Python REMote Interface library. Platform independent. In about 100 Kbytes, perfect for your diet.
Apache License 2.0
3.5k stars 400 forks source link

[Question] How can one change the look of a Remi window? #344

Open PySimpleGUI opened 4 years ago

PySimpleGUI commented 4 years ago

This question came up in the PySimpleGUIWeb project: https://github.com/PySimpleGUI/PySimpleGUI/issues/2163

PySimpleGUI provides the ability to change the colors, fonts, sizes, etc, but wondering if there's more to PySimpleGUIWeb's styling capability that I could be using or in the very least opening up for users to access directly in Remi.

dddomodossola commented 4 years ago

Hello Mike, I looked at the code of PySimpleGuiWeb and style attributes are hardcoded. I mean that style values (background color, borders and so on) are defined in the code as variables. This prevents the possibility to use css style files. The user can only modify styles values by code, and however it is not so bad. He can create its own version of PSG with the preferred style parameters. Doesn't it ?

PySimpleGUI commented 4 years ago

Wow, I SO appreciate you taking the time to look at the PySimpleGUIWeb code! That's going above and beyond what I would expect.

PySimpleGUI tries to give the user access to as many of the "styling" options as possible. What I don't know from the user that logged the request is exactly what window they are describing that is the target look and feel for them. If I knew, then I could try to recreate it and see where PySimpleGUIWeb falls short.

Let's see what the poster is looking for as a target.

dddomodossola commented 4 years ago

You are welcome! I sent you an e-mail with a PSG modified version to make its look n feel as Remi. That should be what the user was asking for.