Re: [gnome-love] Trouble with Glade 3 and Python
- From: "Davi Vercillo C. Garcia (デビッド)" <davivercillo gmail com>
- To: "Tobias Mueller" <muelli auftrags-killer org>
- Cc: gnome-love gnome org
- Subject: Re: [gnome-love] Trouble with Glade 3 and Python
- Date: Fri, 22 Aug 2008 15:14:20 -0300
Thanks all. I found the problem... it was a BUG of Glade, with
"active" property on the Combo Box tag...
On Thu, Aug 21, 2008 at 7:52 PM, Davi Vercillo C. Garcia (デビッド)
<davivercillo gmail com> wrote:
Hey Tobias,
Could you paste your code somewhere? If it's too big, please don't post
it on the list, but try to reduce it or use a pastebin service like
rafb.net.
My Glade file, is:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.4.5 on Thu Aug 21 19:38:06 2008 -->
<glade-interface>
<widget class="GtkWindow" id="mainWindow">
<property name="visible">True</property>
<property name="title" translatable="yes">fakeMail - 0.2b</property>
<property name="resizable">False</property>
<property name="window_position">GTK_WIN_POS_CENTER</property>
<property name="icon">../images/fakemail.ico</property>
<signal name="delete_event" handler="exit"/>
<child>
<widget class="GtkVBox" id="mainTable">
<property name="visible">True</property>
<property name="homogeneous">True</property>
<child>
<widget class="GtkFrame" id="serverFrame">
<property name="visible">True</property>
<property name="label_xalign">0</property>
<child>
<widget class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="left_padding">12</property>
<child>
<widget class="GtkTable" id="table1">
<property name="visible">True</property>
<property name="n_rows">3</property>
<property name="n_columns">4</property>
<child>
<widget class="GtkLabel" id="serverLabel">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">
_Mailserver Adress: </property>
<property name="use_markup">True</property>
<property name="use_underline">True</property>
</widget>
</child>
<child>
<widget class="GtkLabel" id="userLabel">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">
_Username: </property>
<property name="use_markup">True</property>
<property name="use_underline">True</property>
</widget>
<packing>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="portLabel">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">
_Port: </property>
<property name="use_markup">True</property>
<property name="use_underline">True</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="mailserverEntry">
<property name="visible">True</property>
<property name="can_focus">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="portEntry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="text" translatable="yes">25</property>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="userEntry">
<property name="visible">True</property>
<property name="can_focus">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="pwdLabel">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">
Pass_word: </property>
<property name="use_markup">True</property>
<property name="use_underline">True</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="pwdEntry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="visibility">False</property>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="tlsCheck">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Use
T_LS.</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="response_id">0</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="anonymousCheck">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label"
translatable="yes">_Anonymous.</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="response_id">0</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="anonymous_toggled"/>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">4</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkLabel" id="serverFrameLabel">
<property name="visible">True</property>
<property name="label"
translatable="yes"><b>Server Info:</b></property>
<property name="use_markup">True</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
</child>
<child>
<widget class="GtkFrame" id="msgFrame">
<property name="visible">True</property>
<property name="label_xalign">0</property>
<child>
<widget class="GtkAlignment" id="alignment2">
<property name="visible">True</property>
<property name="left_padding">12</property>
<child>
<widget class="GtkTable" id="table2">
<property name="visible">True</property>
<property name="n_rows">4</property>
<property name="n_columns">2</property>
<child>
<widget class="GtkLabel" id="fromLabel">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label"
translatable="yes">_From:</property>
<property name="use_markup">True</property>
<property name="use_underline">True</property>
</widget>
</child>
<child>
<widget class="GtkLabel" id="subLabel">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label"
translatable="yes">Subject:</property>
</widget>
<packing>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="fromEntry">
<property name="visible">True</property>
<property name="can_focus">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="toEntry">
<property name="visible">True</property>
<property name="can_focus">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="subjectEntry">
<property name="visible">True</property>
<property name="can_focus">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
</packing>
</child>
<child>
<widget class="GtkComboBox" id="toComboBox">
<property name="visible">True</property>
<property name="active">3</property>
<property name="items" translatable="yes">To:
Bcc:</property>
</widget>
<packing>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="y_options">GTK_EXPAND</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="msgLabel">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label"
translatable="yes">Message:</property>
</widget>
<packing>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="msgEntry">
<property name="visible">True</property>
<property name="can_focus">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkLabel" id="msgFrameLabel">
<property name="visible">True</property>
<property name="label"
translatable="yes"><b>Message Info:</b></property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
<packing>
<property name="position">1</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="frameTable">
<property name="visible">True</property>
<child>
<widget class="GtkFrame" id="optFrame">
<property name="visible">True</property>
<property name="label_xalign">0</property>
<property name="shadow_type">GTK_SHADOW_NONE</property>
<child>
<widget class="GtkAlignment" id="alignment3">
<property name="visible">True</property>
<property name="left_padding">12</property>
<child>
<widget class="GtkTable" id="table3">
<property name="visible">True</property>
<property name="n_rows">2</property>
<property name="n_columns">2</property>
<child>
<widget class="GtkSpinButton" id="qntSpinButton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="adjustment">1 1 50 1 10
10</property>
</widget>
<packing>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="y_options">GTK_EXPAND</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="numberLabel">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label"
translatable="yes">Number of copies:</property>
</widget>
<packing>
<property name="y_options">GTK_EXPAND</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="clearButton">
<property name="width_request">120</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="label"
translatable="yes">_Clear</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
<signal name="clicked"
handler="clear_button_clicked"/>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">GTK_EXPAND</property>
<property name="y_options">GTK_EXPAND</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="sendButton">
<property name="width_request">120</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="label"
translatable="yes">_Send</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
<signal name="clicked"
handler="send_button_clicked"/>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="x_options">GTK_EXPAND</property>
<property name="y_options">GTK_EXPAND</property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkLabel" id="optFrameLabel">
<property name="visible">True</property>
<property name="label"
translatable="yes"><b>Option:</b></property>
<property name="use_markup">True</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
</child>
<child>
<widget class="GtkStatusbar" id="statusBar">
<property name="visible">True</property>
<property name="spacing">2</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="position">1</property>
</packing>
</child>
</widget>
<packing>
<property name="position">2</property>
</packing>
</child>
</widget>
</child>
</widget>
</glade-interface>
I assume, that you've defined a model for your GtkTreeView in Glade
which doesn't exist.
I didn't find any GtkTree in my Glade file or Python file... and this
is weird...
--
Davi Vercillo Carneiro Garcia
http://davivercillo.blogspot.com/
Universidade Federal do Rio de Janeiro
Departamento de Ciência da Computação
DCC-IM/UFRJ - http://www.dcc.ufrj.br
Grupo de Usuários GNU/Linux da UFRJ (GUL-UFRJ)
http://groups.google.com/group/gul-ufrj
Linux User: #388711
http://counter.li.org/
"Good things come to those who... wait." - Debian Project
"A computer is like air conditioning: it becomes useless when you open
windows." - Linus Torvalds
--
Davi Vercillo Carneiro Garcia
http://davivercillo.blogspot.com/
Universidade Federal do Rio de Janeiro
Departamento de Ciência da Computação
DCC-IM/UFRJ - http://www.dcc.ufrj.br
Grupo de Usuários GNU/Linux da UFRJ (GUL-UFRJ)
http://groups.google.com/group/gul-ufrj
Linux User: #388711
http://counter.li.org/
"Good things come to those who... wait." - Debian Project
"A computer is like air conditioning: it becomes useless when you open
windows." - Linus Torvalds
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]