We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background color should change, to the respective color set in Box widget.
Background color does not change.
from toga import App, MainWindow, Label, Box from toga.constants import BLUE, COLUMN from toga.style import Pack class Application(App): def startup(self): self.main_window = MainWindow(title=self.name) self.frame = Box( children=[ Label("Some Text ...") ], style=Pack( direction=COLUMN, background_color=BLUE ) ) self.main_window.content = Box(children=[self.frame]) self.main_window.content.refresh() self.main_window.show() if __name__ == "__main__": app = Application("BugApp", "App") app.main_loop()
Python Version 3.7
Operating System and Version
Toga Version
Toga Target
The text was updated successfully, but these errors were encountered:
If we replace
self.main_window.content = Box(children=[self.frame])
with this
self.main_window.content = self.frame
it works fine.
Sorry, something went wrong.
Confirmed that this is still an issue on Windows with the current version of Toga. See #1684 (comment) for a more complete test case.
Closing as a duplicate of #767
Successfully merging a pull request may close this issue.
Expected Behavior
Background color should change, to the respective color set in Box widget.
Current Behavior
Background color does not change.
Steps to reproduce
Your Environment
Python Version 3.7
Operating System and Version
Toga Version
Toga Target
The text was updated successfully, but these errors were encountered: