Mats Taraldsvik | 12 Nov 17:04

Re: Python and Glade

On Wed, 2008-11-12 at 16:43 +0100, Frédéric wrote:
> Le 12/11/2008, "Neil Munro" <neilmunro <at> gmail.com> a écrit:
> 
> >I am working on a music database application for myself and I wanna write
> >the GUI using glade and obviously GTK, but I've not had much luck getting
> >things to work, I have two books on python and both say 'just do X' but if X
> >doesn't work I am kinda stuck, so if anyone could help me I would be
> >grateful.
> >
> >The problem is that when I try to just show the GUI (never mind event
> >handlers and signals etc, just want the GUI to show atm) nothing happens,
> >python sorta sits there doing nothing. I have attached the glade file and
> >the python file in the hopes it'll only be one or two lines to change that I
> >am simply unaware of.
> 
> I can't open you glade file right now, but did you set the Visible
> property of the window to Yes? It is No by default...

Yeah, I've done this a few times myself. Why isn't the (first created)
main winow visible by default, by the way? Could have saved me a couple
of hours.. ;)

To make your window visible:

- Start Glade and open your project.

- Open properties for your main winow, and go to the 'Common' tab.

- Set/toggle visible to 'Yes'.

(Continue reading)

Steve McClure | 12 Nov 18:37

Re: Python and Glade


On Nov 12, 2008, at 11:04 AM, Mats Taraldsvik wrote:

> On Wed, 2008-11-12 at 16:43 +0100, Frédéric wrote:
>> Le 12/11/2008, "Neil Munro" <neilmunro <at> gmail.com> a écrit:
>>
>>> I am working on a music database application for myself and I  
>>> wanna write
>>> the GUI using glade and obviously GTK, but I've not had much luck  
>>> getting
>>> things to work, I have two books on python and both say 'just do  
>>> X' but if X
>>> doesn't work I am kinda stuck, so if anyone could help me I would be
>>> grateful.
>>>
>>> The problem is that when I try to just show the GUI (never mind  
>>> event
>>> handlers and signals etc, just want the GUI to show atm) nothing  
>>> happens,
>>> python sorta sits there doing nothing. I have attached the glade  
>>> file and
>>> the python file in the hopes it'll only be one or two lines to  
>>> change that I
>>> am simply unaware of.
>>
>> I can't open you glade file right now, but did you set the Visible
>> property of the window to Yes? It is No by default...
>
> Yeah, I've done this a few times myself. Why isn't the (first created)
> main winow visible by default, by the way? Could have saved me a  
(Continue reading)

Mats Taraldsvik | 12 Nov 19:08

Re: Python and Glade

On Wed, 2008-11-12 at 12:37 -0500, Steve McClure wrote:
> On Nov 12, 2008, at 11:04 AM, Mats Taraldsvik wrote:
> 
> > On Wed, 2008-11-12 at 16:43 +0100, Frédéric wrote:
> >> Le 12/11/2008, "Neil Munro" <neilmunro <at> gmail.com> a écrit:
> >>
> >>> I am working on a music database application for myself and I  
> >>> wanna write
> >>> the GUI using glade and obviously GTK, but I've not had much luck  
> >>> getting
> >>> things to work, I have two books on python and both say 'just do  
> >>> X' but if X
> >>> doesn't work I am kinda stuck, so if anyone could help me I would be
> >>> grateful.
> >>>
> >>> The problem is that when I try to just show the GUI (never mind  
> >>> event
> >>> handlers and signals etc, just want the GUI to show atm) nothing  
> >>> happens,
> >>> python sorta sits there doing nothing. I have attached the glade  
> >>> file and
> >>> the python file in the hopes it'll only be one or two lines to  
> >>> change that I
> >>> am simply unaware of.
> >>
> >> I can't open you glade file right now, but did you set the Visible
> >> property of the window to Yes? It is No by default...
> >
> > Yeah, I've done this a few times myself. Why isn't the (first created)
> > main winow visible by default, by the way? Could have saved me a  
(Continue reading)


Gmane