question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kivy Window Resize

See original GitHub issue

Good Afternoon,

I’m running Python 3.5 and Kivy 1.9.1 on OS X. I installed Kivy using pip install, and I was never really able to get Kivy to work using the download and putting in my Applications folder like the instructions were asking. Everything seems to work fine, and I’ve made a few apps; however, I seem to encounter a problem whenever I try to resize the window. The window goes white while I’m resizing it, and then it turns blank/black afterwards. The terminal just says that it reloaded the graphics and the amount of time it took. I was hoping that after I made my apps using Pyinstaller that this would go away, but the problem still persists. Has anyone else encountered this problem? I haven’t been able to test this on another computer yet to see if the problem persists. I checked the other issues, and it seemed one other person had this issue (#1762), but their terminal output seemed like it had more than mine so I think the problem is slightly different. This problem persists no matter if the app is simple (just a simple button) or complex. Here is the output in the terminal:


Johns-MBP:Kivy  Files jal$ python3 testapp.py
[INFO   ] [Logger      ] Record log in /Users/jal/.kivy/logs/kivy_16-05-27_19.txt
[INFO   ] [Kivy        ] v1.9.1
[INFO   ] [Python      ] v3.5.1 (v3.5.1:37a07cee5969, Dec  5 2015, 21:12:44) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
[INFO   ] [Factory     ] 179 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_imageio, img_dds, img_gif, img_pygame, img_pil (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: pygame
[INFO   ] [GL          ] OpenGL version <b'2.1 ATI-1.42.11'>
[INFO   ] [GL          ] OpenGL vendor <b'ATI Technologies Inc.'>
[INFO   ] [GL          ] OpenGL renderer <b'ATI Radeon R9 M370X OpenGL Engine'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 1
[INFO   ] [GL          ] Shading version <b'1.20'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Text        ] Provider: pygame
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [Base        ] Start application main loop
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [Context     ] Reloading graphics data...
[INFO   ] [Context     ] Reloading done in 0.0124s

I’ve only been working with Python for about a month and Kivy for a little over a week.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
kivedcommented, May 27, 2016

No problem! And yeah, gotta make sure you’re using the right python with pip. 😉 Could be worse. On my MacBook, I somehow have python -> python2 but pip -> python3. 😄

2reactions
FlorenceMeicommented, May 29, 2017

Thank you sooooooo much guys!! At the beginning, I had installed kivy and pygame with pip install. My code did not have any apparent error, but I had some minor problems, like the window popping up behind all the other open windows which I couldn’t bring in the foreground, then the mouse interactions were so weird, and finally, I couldn’t write any text input. There was definitively something wrong. I thought it was Pycharm managing windows weirdly but it wasn’t. So, this is THE solution for people who are MacOs + anaconda + python 3.6 + kivy 1.10 like me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kivy: How to change window size? - python - Stack Overflow
Before the window is created: import kivy kivy.require('1.9.0') from kivy.config import Config Config.set('graphics', 'width', '200') Config.set ...
Read more >
Python | Window size Adjustment in Kivy - GeeksforGeeks
In this article, we are going to see three formats of resizing the window size in kivy. Note: Just note the size in...
Read more >
Window — Kivy 2.1.0 documentation
Core class for creating the default Kivy window. Kivy supports only one window per application: please don't try to create more than one....
Read more >
Window Size Adjustment in Kivy - Coding Ninjas CodeStudio
In the program, we have imported the kivy.config module, which allows us to set the window size of an application. Then we set...
Read more >
How To Change KivyMD Window Size - YouTube
How To Change KivyMD Window Size | Kivy And KivyMD Basics. 2.5K views 2 years ago. SB Developer. SB Developer. 2.09K subscribers. Subscribe....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found