Skip to content
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

size restriction warning for Window minimum height and width being greater than 0 despite setting them correctly #1738

Open
mz3r0 opened this issue Sep 11, 2024 · 0 comments

Comments

@mz3r0
Copy link

mz3r0 commented Sep 11, 2024

Problem:
[WARNING] Both Window.minimum_width and Window.minimum_height must be bigger than 0 for the size restriction to take effect.

In my MDApp.build():

# Window
Window.always_on_top = True
Window.minimum_width = 500
Window.minimum_height = 400
Window.size = (1080, 720)

My kivy-related imports:

# Kivy imports
from kivy.config import Config
from kivy.lang import Builder
from kivy.core.window import Window

# KivyMD imports
from kivymd.app import MDApp
from kivymd.uix.screen import MDScreen
from kivymd.uix.transition import MDSharedAxisTransition

Window restriction works fine. What could be causing this warning?

OS: Windows 10
Python: 3.12
Kivy: 2.3.0
KivyMD: 2.0.1.dev0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant