<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[AccordionView, storing groups in separate modules]]></title><description><![CDATA[<p dir="auto">Next with AV, I'm trying to store separately the several groups to avoid a long long script and make easier maintaining. Is this possible? If yes, I'm doing something wrong. I attach both the launcher script and a module with a group.<br />
Dank u</p>
]]></description><link>https://forum.robofont.com/topic/237/accordionview-storing-groups-in-separate-modules</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 08:21:09 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/237.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Mar 2013 16:12:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to AccordionView, storing groups in separate modules on Tue, 02 Jan 2018 19:46:52 GMT]]></title><description><![CDATA[<p dir="auto">Next with AV, I'm trying to store separately the several groups to avoid a long long script and make easier maintaining. Is this possible? If yes, I'm doing something wrong. I attach both the launcher script and a module with a group.<br />
Dank u</p>
]]></description><link>https://forum.robofont.com/post/237</link><guid isPermaLink="true">https://forum.robofont.com/post/237</guid><dc:creator><![CDATA[joanca]]></dc:creator><pubDate>Tue, 02 Jan 2018 19:46:52 GMT</pubDate></item><item><title><![CDATA[Reply to AccordionView, storing groups in separate modules on Tue, 02 Jan 2018 19:44:10 GMT]]></title><description><![CDATA[<p dir="auto">you can only add vanilla like objects in an <code>AccordionView</code>, in your example the class <code>aGroup</code> is not a vanilla like object</p>
<p dir="auto">use:</p>
<pre><code class="language-python">from vanilla import *

class aGroup(Group):

    def __init__(self):
        super(aGroup, self).__init__((0, 0, -0, -0))
        self.PopUpButton = PopUpButton((10, 10, -10, -10),
            ['PopUpButton'], sizeStyle='small')
</code></pre>
<p dir="auto">good luck!</p>
]]></description><link>https://forum.robofont.com/post/989</link><guid isPermaLink="true">https://forum.robofont.com/post/989</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Tue, 02 Jan 2018 19:44:10 GMT</pubDate></item><item><title><![CDATA[Reply to AccordionView, storing groups in separate modules on Tue, 02 Jan 2018 19:45:26 GMT]]></title><description><![CDATA[<p dir="auto">Still not working with the launcher code :(<br />
Sorry for worst formatting ever.</p>
<pre><code class="language-python">from mojo.UI import AccordionView
from vanilla import *
from storegroup import aGroup

class launcher:

    def __init__(self):
        self.w = FloatingWindow((200, 600), title='accordionView')
        self.agroup = aGroup()
        descriptions = [
            dict(label="aGroup", view=self.agroup, size=117, collapsed=False, canResize=False)
        ]
        self.w.accordionView = AccordionView((0, 0, -0, -0), descriptions)
        self.w.open()

launcher()
</code></pre>
<p dir="auto">BTW, is there a guide somewhere to correctly format in posts?</p>
]]></description><link>https://forum.robofont.com/post/990</link><guid isPermaLink="true">https://forum.robofont.com/post/990</guid><dc:creator><![CDATA[joanca]]></dc:creator><pubDate>Tue, 02 Jan 2018 19:45:26 GMT</pubDate></item><item><title><![CDATA[Reply to AccordionView, storing groups in separate modules on Tue, 02 Jan 2018 19:46:00 GMT]]></title><description><![CDATA[<p dir="auto">euh?</p>
<p dir="auto">an <code>AccordionView</code> only takes a vanilla like object, best is to subclass a <code>vanilla.Group</code> and add UI elements in there.</p>
<p dir="auto">good luck</p>
<p dir="auto">(a working version attached)</p>
]]></description><link>https://forum.robofont.com/post/991</link><guid isPermaLink="true">https://forum.robofont.com/post/991</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Tue, 02 Jan 2018 19:46:00 GMT</pubDate></item></channel></rss>