-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
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
Update no-frame-window.py to resolve deprecation warnings #172
base: main
Are you sure you want to change the base?
Conversation
resolved the following deprecation warnings: window_title_bar_hidden() window_title_bar_buttons_hidden() window_close()
@@ -19,10 +19,11 @@ def main(page: Page): | |||
), | |||
expand=True, | |||
), | |||
IconButton(icons.CLOSE, on_click=lambda _: page.window_close()), | |||
# Use the updated method to close the window |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You dont need to add comments saying this 😅
def main(page: Page): | ||
page.window_title_bar_hidden = True | ||
page.window_title_bar_buttons_hidden = True | ||
# Use the updated properties for window title bar settings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too
@@ -19,10 +19,11 @@ def main(page: Page): | |||
), | |||
expand=True, | |||
), | |||
IconButton(icons.CLOSE, on_click=lambda _: page.window_close()), | |||
# Use the updated method to close the window | |||
IconButton(icons.CLOSE, on_click=lambda _: page.window.close()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IconButton(icons.CLOSE, on_click=lambda _: page.window.close()), | |
IconButton(icons.CLOSE, on_click=lambda e: page.window.close()), |
Let's have e
there just for good practice.
sorry about comments, its habit. I will try to remember 👍 |
No worries. |
resolved the following deprecation warnings:
window_title_bar_hidden()
window_title_bar_buttons_hidden()
window_close()