-
Notifications
You must be signed in to change notification settings - Fork 1k
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
CTkCanvas Uses Different Scaling Than Other Widgets #2461
Comments
It's true that Canvas does not scale and even does not have appearance mode in Why are there two Could you please provide sample reproducible code demonstrating how Canvas and Frame width mismatch in your case. Regards. |
Hi @dipeshSam , Moreover, I will provide a more apparent example of the inconsistent sizing associated with the CustomTkinter Canvas class. The two widgets are both ten pixels less in width than their masters, yet the display still touches the sides of the screen. This seems to be an occurrence only at higher sizes (ex: 30 pixels less make them equal in sizing). ![]() ![]() ![]() |
I am developing a calculator application that uses the grid() geometry manager. I noticed the CTkCanvas widget does not scale like other widgets when declaring the canvas's width/height. Moreover, I attached some pictures of the issue and how the canvas is similar in width to the operation bar when it should not be. Moreover, a list of arguments is nonexistent for CTkCanvas when the other widgets have their arguments transparent (For Pylance's option of listing all present arguments in a class/function).
![calculator](https://private-user-images.githubusercontent.com/168941743/337928529-aa8b2d8d-9ab2-4cde-8b7c-2a7c3c696930.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1NzI5NzUsIm5iZiI6MTcxOTU3MjY3NSwicGF0aCI6Ii8xNjg5NDE3NDMvMzM3OTI4NTI5LWFhOGIyZDhkLTlhYjItNGNkZS04YjdjLTJhN2MzYzY5NjkzMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0M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k-frame](https://private-user-images.githubusercontent.com/168941743/337928533-1885b3ef-b6d3-4f26-8500-50f3bd7cea1b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1NzI5NzUsIm5iZiI6MTcxOTU3MjY3NSwicGF0aCI6Ii8xNjg5NDE3NDMvMzM3OTI4NTMzLTE4ODViM2VmLWI2ZDMtNGYyNi04NTAwLTUwZjNiZDdjZWExYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyOFQxMTA0MzVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04MjkwMzYwYWRlZTFhNjBiYzNmMmQwMjJhNThhM2Y1YjVjODBiNzEwYTA4MzE0YjcyMGYwMDA4N2VlNmU0ZTIxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.KHUTwAgOe-LKcLdiW3z_2MnWhIxoBPvBMYbp6IdF-fQ)
The text was updated successfully, but these errors were encountered: