Popup is sometimes laid out incorrectly under windows 10

37 views
Skip to first unread message

John Anderson

unread,
Dec 1, 2016, 5:15:13 PM12/1/16
to Kivy users support
This is a simplified version of a problem I am having with Popup under Windows 10 with Kivy 1.9.1 and Python 2.7.12. The problem doesn't appear every time the Popup is opened, but it happens about 50% of the time. The symptoms are that the layout of the Popup is sometimes incorrect and sometimes drastically incorrect (i.e., button text not even on the button, or the title not even inside the Popup). I am using a Thread and a Queue to wait for the Popup to finish. To see the problem, run the kivyplay.py script, click on "Start Game Thread", The click on the "OK" button in the Popup. The Popup will appear 4 times, and if the problem doesn't appear, you can click on "Start Game Thread" again. The warning message I see is:

 [WARNING           ] <kivy.uix.gridlayout.GridLayout object at 0x000000000ADDF118> have no cols or rows set, layout is not triggered.

I am not directly using any GridLayout widgets. This same code works flawlessly and without warnings under Ubuntu 16.04 with the same versions of Kivy and Python. Am I doing something wrong? Should I report this as a bug?

Thanks!!!


game_thread.py
kivyplay.py
my_popup.py
play.kv
pop_test.kv

abdullah....@gmail.com

unread,
Dec 22, 2017, 1:25:52 AM12/22/17
to Kivy users support
Hi John,
I think it's because the popup is not calling from main thread. I have similiar issues when try to create and calling popup in another thread.

John Anderson

unread,
Dec 22, 2017, 1:15:17 PM12/22/17
to Kivy users support
Wow! It's been over a year, but I finally got the answer. Thank You Abdullah, that fixes it!

abdullah....@gmail.com

unread,
Jan 3, 2018, 6:56:53 PM1/3/18
to Kivy users support
Glad to hear that! I got same error in my project, googling, and found your question here.
Reply all
Reply to author
Forward
0 new messages