Re: [pygtk] Selecting Children Checkboxes When Parent is Selected
2008/4/19, Shadi Azoum <[EMAIL PROTECTED]>: > I have two columns in a treeview, one with strings in a hierarchial fashion > and corresponding checkboxes. How can I make all children checkboxes > selected if a parent checkbox is selected? > I would greatly appreciate any help. You need to catch the changed signal, and set up all the children as you wish. In the w3af project [1], I did that, and even set up everything so when you click/unclick a children, the parent goes to "mixed mode". Check it out and try it! Regards, [1] https://sourceforge.net/projects/w3af -- .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] Label a different font sizes
Vláďa wrote: I¨m using 2.10.6 on Windows. I will update to 2.12, anyway I know already know that the problem is caused by to small numbers for font size. But it's strange that setting size=14 produces similar result as font-size: 14px in HTML/CSS. This is what confused me. So the first 2 lines are on my system little bigger then normal font size. Using values around 2 works correctly. What unit is the font size in? Thousandths of point? http://www.pygtk.org/docs/pygtk/pango-markup-language.html ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] TreeView and CellRendererCombo - MS Access-like form behaviour
Hi, btw, thank you John Finlay for the answer on my last question. In my quest of a GUI interfacing my small database application (I did try OpenOffice Base and went mad after one hour :S ) I would like to copy some behaviour of MS Access in my forms. Say I have two (SQL) tables with two fields and one relation between the two: |Table1| |Table2| | Field1 (int) |<>| Field1 (int) | | Field2 (str) | | Field2 (str) | Now in my PyGTK form of Table1 (a TreeView), when I display the Field1 in the first column, I would like to have a ComboBox which displays the text associated to the integer value of Table2 (i.e. Table2.Field2) rather than the value directly. However, I still want it stored as an integer in Table1.Field1. How would you do this in an elegant manner ? Do I have to create my own CellRenderer more generic than a CellRendererCombo ? Thanks again, Stéphane ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] Label a different font sizes
I¨m using 2.10.6 on Windows. I will update to 2.12, anyway I know already know that the problem is caused by to small numbers for font size. But it's strange that setting size=14 produces similar result as font-size: 14px in HTML/CSS. This is what confused me. So the first 2 lines are on my system little bigger then normal font size. Using values around 2 works correctly. What unit is the font size in? Thousandths of point? Vlada John Finlay napsal(a): Vláďa wrote: So I think my code is correct. The problem is, that the first value (size="14") in my example is also used for the second line, although I specified new size (size="10"). The strange thing is that if I use attributes like "large" or "small" then it works. Unfortunately my English is rather weak, so I'm not sure if I can explain it clearly. Here is a short sample code to show the problem: If I run your example code on my system (pygtk and gtk 2.12.0) the first two lines are so small that they appear to be a dot. The third line is readable. What version of pygtk and gtk are you using? John ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] Selecting Children Checkboxes When Parent is Selected
I have two columns in a treeview, one with strings in a hierarchial fashion and corresponding checkboxes. How can I make all children checkboxes selected if a parent checkbox is selected? I would greatly appreciate any help. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] Sync 2 widgets
I have a checkbox in my program (made with Glade). I also have a tray-icon which pops-up a menu that contains a checkbox too. Is it possible that if I click the checkbox in my program, the checkbox in the traymenu is also toggled? And the other way around too ofcourse. Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/