How to set pos of ModalView

32 views
Skip to first unread message

Degenerate Tech

unread,
Apr 21, 2024, 2:05:36 AM4/21/24
to Kivy users support
I want to set position of modal view not pos_hint 
. I am working on a project . That a ModalView start grow from a particular widget 's pos 
And move to top position . 

How to implement ? 

elli...@cox.net

unread,
Apr 21, 2024, 8:50:32 AM4/21/24
to kivy-...@googlegroups.com
The Modalview is not the right tool for what you want to achieve.  The ModalView is derived from an AnchorLayout.   I would reccomend you create something that looks like a ModalView using a BoxLayout in a FloatLayout.  Then you can position the BoxLayout anywhere in the Window and  control over the position.


From: kivy-...@googlegroups.com <kivy-...@googlegroups.com> on behalf of Degenerate Tech <sksah...@gmail.com>
Sent: Saturday, April 20, 2024 11:05 PM
To: Kivy users support <kivy-...@googlegroups.com>
Subject: [kivy-users] How to set pos of ModalView
 
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/a07801ff-0be0-4786-b7ae-0cf12db4183cn%40googlegroups.com.

ElliotG

unread,
Apr 25, 2024, 11:50:06 AM4/25/24
to Kivy users support
The attached file is an example.
not_modal.py
Reply all
Reply to author
Forward
0 new messages