Any KIVY Visual Layout editor

93 views
Skip to first unread message

Prabhat Mohanty

unread,
Jun 27, 2019, 12:39:02 AM6/27/19
to Kivy users support
Hi,

Is there any KIVY Visual Layout editor where we could use a LayoutBox and widgets to set our draft layout and it would either save as a .KV file or at least give the right POS and SIZE details?

Regards

Prabhat

Elliot Garbus

unread,
Jun 27, 2019, 9:59:27 AM6/27/19
to kivy-...@googlegroups.com

I’m not aware of any visual layout editor.  I find that when I am doing a complex layout, I start by just using buttons as a strand in for all of my widgets.  This allows me to focus on how I want the layouts structured.  I then replace the buttons with the appropriate widgets.   Using Layouts and hits minimizes the need to focus on position and size.  It is a very powerful feature of kivy.

--
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 post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/c32ae6fe-237b-4868-b7ec-d8b21c2619a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

Prabhat Mohanty

unread,
Jun 28, 2019, 3:13:38 AM6/28/19
to kivy-...@googlegroups.com
Thank you. This sounds like a good hack!

Prabhat

Prabhat Mohanty

unread,
Jun 28, 2019, 3:29:09 AM6/28/19
to kivy-...@googlegroups.com
To position a new button, can we refer to the position of an old widget/button?

For example if we have an old button B1 and now would place a new button B2 :

Button:
    id : bt2
   pos : self.ids.bt1.pos_x + 50, self.ids.bt1.pos_y - 50

Something like this doable?

On Thu, Jun 27, 2019 at 7:29 PM Elliot Garbus <elli...@cox.net> wrote:

Elliot Garbus

unread,
Jun 28, 2019, 8:45:28 AM6/28/19
to kivy-...@googlegroups.com
Yes, you can do that, but even better is to use a layout and let the layout position and size the widgets for you.

Here is a link to a presentation I did at a python meet up that talks about layouts.
https://docs.google.com/presentation/d/1ZwJJZRB6sFDZQf5shE3H4jOHCOYhTzwGvZOphK7CtoU/edit?usp=sharing
Reply all
Reply to author
Forward
0 new messages