Add sizers according to object length

Hello!
It may be a naive issue, but I don't know how to solve it. I have a MySQL query which returns an object named DayDataQuery. This is a list with nested list. DayDataQuery[1] will always have the same length, and I will distribute its elements on a dialog using the wx.GridBagSizer. However, DayDataQuery[0] length will vary. How can I add as many wx.GridBagSizer sizers as the DayData[0] length so I can display all the information stored in the object? I paste the DayDataQuery object which contains info on 2 days:
DayDataQuery = [['15', '2010-09-28', 'Spain ', 'Catalunya', 'Emporda Marshes Natural Park', 'acrocephalus', '0:00:00', '0:00:00', '15.0', '24.0', '5', '3', '10', '10', 'Very windy day', '1', '1', '1', '1', '1', '1', '0', '0'], ['16', '2010-09-28', 'Spain ', 'Catalunya', 'Lleida Drylands', 'acrocephalus', '5:30:00', '19:00:00', '8.0', '15.0', '0', '0', '10', '10', "APNAE", '1', '1', '1', '1', '1', '0', '0', '0']]
Cheers!

Dani

···

--
Daniel Valverde Saub�
c/Joan Maragall 37 4 2
17002 Girona
Spain
Tel�fon m�bil: +34651987662
e-mail: dani.valverde@gmail.com
http://www.acrocephalus.net
http://natupics.blogspot.com

Si no �s del tot necessari, no imprimeixis aquest missatge. Si ho fas utilitza paper 100% reciclat i blanquejat sense clor. D'aquesta manera ajudar�s a estalviar aigua, energia i recursos forestals. GR�CIES!

Do not print this message unless it is absolutely necessary. If you must print it, please use 100% recycled paper whitened without chlorine. By doing so, you will save water, energy and forest resources. THANK YOU!

Dani,

Hello!
It may be a naive issue, but I don't know how to solve it. I have a MySQL query which returns an object named DayDataQuery. This is a list with nested list. DayDataQuery[1] will always have the same length, and I will distribute its elements on a dialog using the wx.GridBagSizer. However, DayDataQuery[0] length will vary. How can I add as many wx.GridBagSizer sizers as the DayData[0] length so I can display all the information stored in the object? I paste the DayDataQuery object which contains info on 2 days:
DayDataQuery = [['15', '2010-09-28', 'Spain ', 'Catalunya', 'Emporda Marshes Natural Park', 'acrocephalus', '0:00:00', '0:00:00', '15.0', '24.0', '5', '3', '10', '10', 'Very windy day', '1', '1', '1', '1', '1', '1', '0', '0'], ['16', '2010-09-28', 'Spain ', 'Catalunya', 'Lleida Drylands', 'acrocephalus', '5:30:00', '19:00:00', '8.0', '15.0', '0', '0', '10', '10', "APNAE", '1', '1', '1', '1', '1', '0', '0', '0']]

Are you sure you want to use a gridbagsizer for this? See: UsingSizers - wxPyWiki

Wouldn't this type of data better fit into a treelist of some kind? I use ObjectListView for this stuff as it allows easy to change the grouping you might want to have.

http://objectlistview.sourceforge.net/python/groupListView.html#using-grouplistview

You should also look at the other options e.g. TreeListCtrl, HyperTreeList.

Werner

···

On 04/10/2010 13:18, Dani Valverde wrote:

Thank you Werner! I'll check them and ask if I have any question.
Cheers!

Dani

···

On 10/04/2010 02:32 PM, werner wrote:

Dani,

On 04/10/2010 13:18, Dani Valverde wrote:

Hello!
It may be a naive issue, but I don't know how to solve it. I have a MySQL query which returns an object named DayDataQuery. This is a list with nested list. DayDataQuery[1] will always have the same length, and I will distribute its elements on a dialog using the wx.GridBagSizer. However, DayDataQuery[0] length will vary. How can I add as many wx.GridBagSizer sizers as the DayData[0] length so I can display all the information stored in the object? I paste the DayDataQuery object which contains info on 2 days:
DayDataQuery = [['15', '2010-09-28', 'Spain ', 'Catalunya', 'Emporda Marshes Natural Park', 'acrocephalus', '0:00:00', '0:00:00', '15.0', '24.0', '5', '3', '10', '10', 'Very windy day', '1', '1', '1', '1', '1', '1', '0', '0'], ['16', '2010-09-28', 'Spain ', 'Catalunya', 'Lleida Drylands', 'acrocephalus', '5:30:00', '19:00:00', '8.0', '15.0', '0', '0', '10', '10', "APNAE", '1', '1', '1', '1', '1', '0', '0', '0']]

Are you sure you want to use a gridbagsizer for this? See: UsingSizers - wxPyWiki

Wouldn't this type of data better fit into a treelist of some kind? I use ObjectListView for this stuff as it allows easy to change the grouping you might want to have.

Using a GroupListView — ObjectListView v1.2 documentation

You should also look at the other options e.g. TreeListCtrl, HyperTreeList.

Werner

--
Daniel Valverde Saub�
c/Joan Maragall 37 4 2
17002 Girona
Spain
Tel�fon m�bil: +34651987662
e-mail: dani.valverde@gmail.com
http://www.acrocephalus.net
http://natupics.blogspot.com

Si no �s del tot necessari, no imprimeixis aquest missatge. Si ho fas utilitza paper 100% reciclat i blanquejat sense clor. D'aquesta manera ajudar�s a estalviar aigua, energia i recursos forestals. GR�CIES!

Do not print this message unless it is absolutely necessary. If you must print it, please use 100% recycled paper whitened without chlorine. By doing so, you will save water, energy and forest resources. THANK YOU!

Hello Werner,
I've had a look at ObjectListView and it likes me. However, I have downloaded it from objectlistview.sourceforge.net/ and I don't know how to install it, I don't see any kind of setup.py file. Could you help? Another issue, will it run on Linux?
Cheers!

Dani

···

On 10/04/2010 02:32 PM, werner wrote:

Dani,

On 04/10/2010 13:18, Dani Valverde wrote:

Hello!
It may be a naive issue, but I don't know how to solve it. I have a MySQL query which returns an object named DayDataQuery. This is a list with nested list. DayDataQuery[1] will always have the same length, and I will distribute its elements on a dialog using the wx.GridBagSizer. However, DayDataQuery[0] length will vary. How can I add as many wx.GridBagSizer sizers as the DayData[0] length so I can display all the information stored in the object? I paste the DayDataQuery object which contains info on 2 days:
DayDataQuery = [['15', '2010-09-28', 'Spain ', 'Catalunya', 'Emporda Marshes Natural Park', 'acrocephalus', '0:00:00', '0:00:00', '15.0', '24.0', '5', '3', '10', '10', 'Very windy day', '1', '1', '1', '1', '1', '1', '0', '0'], ['16', '2010-09-28', 'Spain ', 'Catalunya', 'Lleida Drylands', 'acrocephalus', '5:30:00', '19:00:00', '8.0', '15.0', '0', '0', '10', '10', "APNAE", '1', '1', '1', '1', '1', '0', '0', '0']]

Are you sure you want to use a gridbagsizer for this? See: UsingSizers - wxPyWiki

Wouldn't this type of data better fit into a treelist of some kind? I use ObjectListView for this stuff as it allows easy to change the grouping you might want to have.

Using a GroupListView — ObjectListView v1.2 documentation

You should also look at the other options e.g. TreeListCtrl, HyperTreeList.

Werner

--
Daniel Valverde Saub�
c/Joan Maragall 37 4 2
17002 Girona
Spain
Tel�fon m�bil: +34651987662
e-mail: dani.valverde@gmail.com
http://www.acrocephalus.net
http://natupics.blogspot.com

Si no �s del tot necessari, no imprimeixis aquest missatge. Si ho fas utilitza paper 100% reciclat i blanquejat sense clor. D'aquesta manera ajudar�s a estalviar aigua, energia i recursos forestals. GR�CIES!

Do not print this message unless it is absolutely necessary. If you must print it, please use 100% recycled paper whitened without chlorine. By doing so, you will save water, energy and forest resources. THANK YOU!

Are you downloading 1.2? See here:

Or here's a direct link:

http://sourceforge.net/projects/objectlistview/files/objectlistview-python/v1.2/ObjectListView-1.2.zip/download

The 2.4 version is C++ or C# or something. It is not the Python
version. If you download it, you will have a setup.py file to use.

···

On Oct 4, 10:49 am, Dani Valverde <dani.valve...@gmail.com> wrote:

On 10/04/2010 02:32 PM, werner wrote:

> Dani,

> On 04/10/2010 13:18, Dani Valverde wrote:
>> Hello!
>> It may be a naive issue, but I don't know how to solve it. I have a
>> MySQL query which returns an object named DayDataQuery. This is a
>> list with nested list. DayDataQuery[1] will always have the same
>> length, and I will distribute its elements on a dialog using the
>> wx.GridBagSizer. However, DayDataQuery[0] length will vary. How can I
>> add as many wx.GridBagSizer sizers as the DayData[0] length so I can
>> display all the information stored in the object? I paste the
>> DayDataQuery object which contains info on 2 days:
>> DayDataQuery = [['15', '2010-09-28', 'Spain ', 'Catalunya', 'Emporda
>> Marshes Natural Park', 'acrocephalus', '0:00:00', '0:00:00', '15.0',
>> '24.0', '5', '3', '10', '10', 'Very windy day', '1', '1', '1', '1',
>> '1', '1', '0', '0'], ['16', '2010-09-28', 'Spain ', 'Catalunya',
>> 'Lleida Drylands', 'acrocephalus', '5:30:00', '19:00:00', '8.0',
>> '15.0', '0', '0', '10', '10', "APNAE", '1', '1', '1', '1', '1', '0',
>> '0', '0']]
> Are you sure you want to use a gridbagsizer for this? See:
>UsingSizers - wxPyWiki

> Wouldn't this type of data better fit into a treelist of some kind? I
> use ObjectListView for this stuff as it allows easy to change the
> grouping you might want to have.

>Using a GroupListView — ObjectListView v1.2 documentation

> You should also look at the other options e.g. TreeListCtrl,
> HyperTreeList.

> Werner

Hello Werner,
I've had a look at ObjectListView and it likes me. However, I have
downloaded it from objectlistview.sourceforge.net/ and I don't know how
to install it, I don't see any kind of setup.py file. Could you help?
Another issue, will it run on Linux?
Cheers!

Dani

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

...

Hello Werner,
I've had a look at ObjectListView and it likes me. However, I have downloaded it from objectlistview.sourceforge.net/ and I don't know how to install it, I don't see any kind of setup.py file.

I use the SVN version of it, which contains a setup.py, and obviously also some changes which are not in 1.2 - also I don't recall what they all are.

If you get the SVN version, install it in e.g. "c:\dev" and then just run "setup.py install" from the Python/Trunk it contains and that will install it for you.

Looking at the zip I think you can just copy "ObjectListView" and "ObjectListView.egg-info" folders to your lib/site-packages folder.

Could you help? Another issue, will it run on Linux?

I am only using it on Windows, according to the FAQ it is tested on Windows and a bit on Ubuntu.

Werner

···

On 04/10/2010 17:49, Dani Valverde wrote:

Thank you for your help. I've just started playing with the ObjectListView. However, I have a question. Is it possible to list the items similar to a TreeList? I mean, the root will be the species. However, this species can be seen in different places, and you can see different individuals at each place. So, the general schema for the list would be:

Level 1: Species
         Level 2: Place(s) where it was seen
                 Level 3: Different individuals
I would like to use ObjectListView because of its easiness to print reports.
Cheers!

Dani

···

On 10/04/2010 02:32 PM, werner wrote:

Dani,

On 04/10/2010 13:18, Dani Valverde wrote:

Hello!
It may be a naive issue, but I don't know how to solve it. I have a MySQL query which returns an object named DayDataQuery. This is a list with nested list. DayDataQuery[1] will always have the same length, and I will distribute its elements on a dialog using the wx.GridBagSizer. However, DayDataQuery[0] length will vary. How can I add as many wx.GridBagSizer sizers as the DayData[0] length so I can display all the information stored in the object? I paste the DayDataQuery object which contains info on 2 days:
DayDataQuery = [['15', '2010-09-28', 'Spain ', 'Catalunya', 'Emporda Marshes Natural Park', 'acrocephalus', '0:00:00', '0:00:00', '15.0', '24.0', '5', '3', '10', '10', 'Very windy day', '1', '1', '1', '1', '1', '1', '0', '0'], ['16', '2010-09-28', 'Spain ', 'Catalunya', 'Lleida Drylands', 'acrocephalus', '5:30:00', '19:00:00', '8.0', '15.0', '0', '0', '10', '10', "APNAE", '1', '1', '1', '1', '1', '0', '0', '0']]

Are you sure you want to use a gridbagsizer for this? See: UsingSizers - wxPyWiki

Wouldn't this type of data better fit into a treelist of some kind? I use ObjectListView for this stuff as it allows easy to change the grouping you might want to have.

Using a GroupListView — ObjectListView v1.2 documentation

You should also look at the other options e.g. TreeListCtrl, HyperTreeList.

Werner

--
Daniel Valverde Saub�
c/Joan Maragall 37 4 2
17002 Girona
Spain
Tel�fon m�bil: +34651987662
e-mail: dani.valverde@gmail.com
http://www.acrocephalus.net
http://natupics.blogspot.com

Si no �s del tot necessari, no imprimeixis aquest missatge. Si ho fas utilitza paper 100% reciclat i blanquejat sense clor. D'aquesta manera ajudar�s a estalviar aigua, energia i recursos forestals. GR�CIES!

Do not print this message unless it is absolutely necessary. If you must print it, please use 100% recycled paper whitened without chlorine. By doing so, you will save water, energy and forest resources. THANK YOU!