[pygtk] Error message
Frédéric
frederic.mantegazza at gbiloba.org
Tue Jun 24 14:00:15 WST 2008
On mardi 24 juin 2008, BJ=F6rn Lindqvist wrote:
> The error messages suggest that you are calling the method
> gtk.CellView.set_displayed_row on a cell view that does not have a
> model attached to it.
Ok. Here is the glade file...
-- =
Fr=E9d=E9ric
http://www.gbiloba.org
-------------- section suivante --------------
<?xml version=3D"1.0" encoding=3D"UTF-8" standalone=3D"no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.4.5 on Sat Jun 21 09:19:19 2008 -->
<glade-interface>
<widget class=3D"GtkDialog" id=3D"configDialog">
<property name=3D"border_width">5</property>
<property name=3D"resizable">False</property>
<property name=3D"window_position">GTK_WIN_POS_CENTER_ON_PARENT</proper=
ty>
<property name=3D"type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<property name=3D"has_separator">False</property>
<child internal-child=3D"vbox">
<widget class=3D"GtkVBox" id=3D"dialog-vbox1">
<property name=3D"visible">True</property>
<child>
<widget class=3D"GtkNotebook" id=3D"notebook1">
<property name=3D"visible">True</property>
<property name=3D"can_focus">True</property>
<child>
<widget class=3D"GtkTable" id=3D"table1">
<property name=3D"visible">True</property>
<property name=3D"n_rows">3</property>
<property name=3D"n_columns">2</property>
<property name=3D"column_spacing">5</property>
<property name=3D"row_spacing">5</property>
<child>
<widget class=3D"GtkComboBox" id=3D"cameraOrientationComb=
obox">
<property name=3D"visible">True</property>
<property name=3D"active">0</property>
<property name=3D"items" translatable=3D"yes" context=
=3D"yes">portrait
landscape</property>
</widget>
<packing>
<property name=3D"left_attach">1</property>
<property name=3D"right_attach">2</property>
<property name=3D"top_attach">2</property>
<property name=3D"bottom_attach">3</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label53">
<property name=3D"visible">True</property>
<property name=3D"xalign">0.89999997615814209</property>
<property name=3D"label" translatable=3D"yes" context=
=3D"yes">Orientation</property>
</widget>
<packing>
<property name=3D"top_attach">2</property>
<property name=3D"bottom_attach">3</property>
</packing>
</child>
<child>
<widget class=3D"GtkSpinButton" id=3D"overlapSpinbutton">
<property name=3D"visible">True</property>
<property name=3D"can_focus">True</property>
<property name=3D"max_length">5</property>
<property name=3D"width_chars">5</property>
<property name=3D"xalign">1</property>
<property name=3D"adjustment">25 10 90 5 10 10</propert=
y>
</widget>
<packing>
<property name=3D"left_attach">1</property>
<property name=3D"right_attach">2</property>
<property name=3D"top_attach">1</property>
<property name=3D"bottom_attach">2</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label51">
<property name=3D"visible">True</property>
<property name=3D"xalign">0.89999997615814209</property>
<property name=3D"label" translatable=3D"yes" context=
=3D"yes">Overlap (%)</property>
</widget>
<packing>
<property name=3D"top_attach">1</property>
<property name=3D"bottom_attach">2</property>
</packing>
</child>
<child>
<widget class=3D"GtkSpinButton" id=3D"stabilizationDelayS=
pinbutton">
<property name=3D"visible">True</property>
<property name=3D"can_focus">True</property>
<property name=3D"max_length">5</property>
<property name=3D"width_chars">5</property>
<property name=3D"xalign">1</property>
<property name=3D"adjustment">0.5 0 10 0.5 10 10</prope=
rty>
<property name=3D"digits">1</property>
</widget>
<packing>
<property name=3D"left_attach">1</property>
<property name=3D"right_attach">2</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label49">
<property name=3D"visible">True</property>
<property name=3D"xalign">0.89999997615814209</property>
<property name=3D"label" translatable=3D"yes" context=
=3D"yes">Stab. delay (s)</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label1">
<property name=3D"visible">True</property>
<property name=3D"label" translatable=3D"yes" context=3D"ye=
s">Shooting</property>
</widget>
<packing>
<property name=3D"type">tab</property>
<property name=3D"tab_fill">False</property>
</packing>
</child>
<child>
<widget class=3D"GtkTable" id=3D"table2">
<property name=3D"visible">True</property>
<property name=3D"n_rows">3</property>
<property name=3D"n_columns">3</property>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<widget class=3D"GtkComboBox" id=3D"sensorRatioCombobox">
<property name=3D"visible">True</property>
<property name=3D"active">0</property>
<property name=3D"items" translatable=3D"yes" context=
=3D"yes">3:2
4:3</property>
</widget>
<packing>
<property name=3D"left_attach">2</property>
<property name=3D"right_attach">3</property>
<property name=3D"top_attach">2</property>
<property name=3D"bottom_attach">3</property>
<property name=3D"x_padding">5</property>
</packing>
</child>
<child>
<widget class=3D"GtkSpinButton" id=3D"sensorCoefSpinbutto=
n">
<property name=3D"visible">True</property>
<property name=3D"can_focus">True</property>
<property name=3D"max_length">5</property>
<property name=3D"width_chars">5</property>
<property name=3D"xalign">1</property>
<property name=3D"adjustment">1.6000000000000001 1 10 0=
.10000000000000001 1 1</property>
<property name=3D"digits">1</property>
</widget>
<packing>
<property name=3D"left_attach">1</property>
<property name=3D"right_attach">2</property>
<property name=3D"top_attach">2</property>
<property name=3D"bottom_attach">3</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label50">
<property name=3D"visible">True</property>
<property name=3D"xalign">0.89999997615814209</property>
<property name=3D"label" translatable=3D"yes" context=
=3D"yes">Sensor ratio</property>
</widget>
<packing>
<property name=3D"top_attach">2</property>
<property name=3D"bottom_attach">3</property>
</packing>
</child>
<child>
<widget class=3D"GtkSpinButton" id=3D"nbPictsSpinbutton">
<property name=3D"visible">True</property>
<property name=3D"can_focus">True</property>
<property name=3D"max_length">5</property>
<property name=3D"width_chars">5</property>
<property name=3D"xalign">1</property>
<property name=3D"adjustment">1 1 5 1 10 10</property>
<property name=3D"snap_to_ticks">True</property>
</widget>
<packing>
<property name=3D"left_attach">1</property>
<property name=3D"right_attach">2</property>
<property name=3D"top_attach">1</property>
<property name=3D"bottom_attach">2</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label48">
<property name=3D"visible">True</property>
<property name=3D"xalign">0.89999997615814209</property>
<property name=3D"label" translatable=3D"yes" context=
=3D"yes">Nb picts</property>
</widget>
<packing>
<property name=3D"top_attach">1</property>
<property name=3D"bottom_attach">2</property>
</packing>
</child>
<child>
<widget class=3D"GtkSpinButton" id=3D"timeValueSpinbutton=
">
<property name=3D"visible">True</property>
<property name=3D"can_focus">True</property>
<property name=3D"max_length">6</property>
<property name=3D"width_chars">6</property>
<property name=3D"xalign">1</property>
<property name=3D"adjustment">0.5 0.10000000000000001 1=
00 0.10000000000000001 10 10</property>
<property name=3D"digits">1</property>
</widget>
<packing>
<property name=3D"left_attach">1</property>
<property name=3D"right_attach">2</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label47">
<property name=3D"visible">True</property>
<property name=3D"xalign">0.89999997615814209</property>
<property name=3D"label" translatable=3D"yes" context=
=3D"yes">Tv (s)</property>
</widget>
</child>
</widget>
<packing>
<property name=3D"position">1</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label2">
<property name=3D"visible">True</property>
<property name=3D"label" translatable=3D"yes" context=3D"ye=
s">Camera</property>
</widget>
<packing>
<property name=3D"type">tab</property>
<property name=3D"position">1</property>
<property name=3D"tab_fill">False</property>
</packing>
</child>
<child>
<widget class=3D"GtkTable" id=3D"table3">
<property name=3D"visible">True</property>
<property name=3D"n_rows">1</property>
<property name=3D"n_columns">3</property>
<child>
<widget class=3D"GtkCheckButton" id=3D"fisheyeCheckbutton=
">
<property name=3D"visible">True</property>
<property name=3D"can_focus">True</property>
<property name=3D"label" translatable=3D"yes" context=
=3D"yes">fisheye</property>
<property name=3D"response_id">0</property>
<property name=3D"draw_indicator">True</property>
</widget>
<packing>
<property name=3D"left_attach">2</property>
<property name=3D"right_attach">3</property>
<property name=3D"x_padding">5</property>
</packing>
</child>
<child>
<widget class=3D"GtkSpinButton" id=3D"focalSpinbutton">
<property name=3D"visible">True</property>
<property name=3D"can_focus">True</property>
<property name=3D"max_length">6</property>
<property name=3D"width_chars">6</property>
<property name=3D"xalign">1</property>
<property name=3D"adjustment">17 5 500 0.5 10 10</prope=
rty>
<property name=3D"digits">1</property>
</widget>
<packing>
<property name=3D"left_attach">1</property>
<property name=3D"right_attach">2</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label52">
<property name=3D"visible">True</property>
<property name=3D"xalign">0.89999997615814209</property>
<property name=3D"label" translatable=3D"yes" context=
=3D"yes">Focal (mm)</property>
</widget>
</child>
</widget>
<packing>
<property name=3D"position">2</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label3">
<property name=3D"visible">True</property>
<property name=3D"label" translatable=3D"yes" context=3D"ye=
s">Lens</property>
</widget>
<packing>
<property name=3D"type">tab</property>
<property name=3D"position">2</property>
<property name=3D"tab_fill">False</property>
</packing>
</child>
<child>
<widget class=3D"GtkTable" id=3D"table4">
<property name=3D"visible">True</property>
<property name=3D"n_rows">3</property>
<property name=3D"n_columns">2</property>
<child>
<widget class=3D"GtkEntry" id=3D"serialPortEntry">
<property name=3D"visible">True</property>
<property name=3D"can_focus">True</property>
<property name=3D"text" translatable=3D"yes" context=3D=
"yes">0</property>
</widget>
<packing>
<property name=3D"left_attach">1</property>
<property name=3D"right_attach">2</property>
<property name=3D"top_attach">2</property>
<property name=3D"bottom_attach">3</property>
</packing>
</child>
<child>
<widget class=3D"GtkEntry" id=3D"bluetoothDeviceAddressEn=
try">
<property name=3D"visible">True</property>
<property name=3D"can_focus">True</property>
</widget>
<packing>
<property name=3D"left_attach">1</property>
<property name=3D"right_attach">2</property>
<property name=3D"top_attach">1</property>
<property name=3D"bottom_attach">2</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label14">
<property name=3D"visible">True</property>
<property name=3D"xalign">0.89999997615814209</property>
<property name=3D"label" translatable=3D"yes" context=
=3D"yes">Serial port</property>
</widget>
<packing>
<property name=3D"top_attach">2</property>
<property name=3D"bottom_attach">3</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label13">
<property name=3D"visible">True</property>
<property name=3D"xalign">0.89999997615814209</property>
<property name=3D"label" translatable=3D"yes" context=
=3D"yes">BT device address</property>
</widget>
<packing>
<property name=3D"top_attach">1</property>
<property name=3D"bottom_attach">2</property>
</packing>
</child>
<child>
<widget class=3D"GtkComboBox" id=3D"driverCombobox">
<property name=3D"visible">True</property>
<property name=3D"active">0</property>
<property name=3D"items" translatable=3D"yes" context=
=3D"yes">bluetooth
serial
usb</property>
</widget>
<packing>
<property name=3D"left_attach">1</property>
<property name=3D"right_attach">2</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label12">
<property name=3D"visible">True</property>
<property name=3D"xalign">0.89999997615814209</property>
<property name=3D"label" translatable=3D"yes" context=
=3D"yes">Driver</property>
</widget>
</child>
</widget>
<packing>
<property name=3D"position">3</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label4">
<property name=3D"visible">True</property>
<property name=3D"label" translatable=3D"yes" context=3D"ye=
s">Hardware</property>
</widget>
<packing>
<property name=3D"type">tab</property>
<property name=3D"position">3</property>
<property name=3D"tab_fill">False</property>
</packing>
</child>
<child>
<widget class=3D"GtkTable" id=3D"table5">
<property name=3D"visible">True</property>
<property name=3D"n_rows">1</property>
<property name=3D"n_columns">2</property>
<child>
<widget class=3D"GtkComboBox" id=3D"loggerCLevelCombobox">
<property name=3D"visible">True</property>
<property name=3D"active">2</property>
<property name=3D"items" translatable=3D"yes" context=
=3D"yes">trace
debug
info
warning
error
exception
critical</property>
</widget>
<packing>
<property name=3D"left_attach">1</property>
<property name=3D"right_attach">2</property>
<property name=3D"y_options">GTK_EXPAND</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label6">
<property name=3D"visible">True</property>
<property name=3D"xalign">0.89999997615814209</property>
<property name=3D"label" translatable=3D"yes" context=
=3D"yes">Logger level</property>
</widget>
</child>
</widget>
<packing>
<property name=3D"position">4</property>
</packing>
</child>
<child>
<widget class=3D"GtkLabel" id=3D"label5">
<property name=3D"visible">True</property>
<property name=3D"label" translatable=3D"yes" context=3D"ye=
s">Misc</property>
</widget>
<packing>
<property name=3D"type">tab</property>
<property name=3D"position">4</property>
<property name=3D"tab_fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name=3D"position">1</property>
</packing>
</child>
<child internal-child=3D"action_area">
<widget class=3D"GtkHButtonBox" id=3D"dialog-action_area1">
<property name=3D"visible">True</property>
<property name=3D"layout_style">GTK_BUTTONBOX_END</property>
<child>
<widget class=3D"GtkButton" id=3D"okButton">
<property name=3D"visible">True</property>
<property name=3D"can_focus">True</property>
<property name=3D"receives_default">True</property>
<property name=3D"label" translatable=3D"yes" context=3D"ye=
s">Ok</property>
<property name=3D"response_id">0</property>
<signal name=3D"clicked" handler=3D"on_okButton_clicked"/>
</widget>
</child>
<child>
<widget class=3D"GtkButton" id=3D"cancelButton">
<property name=3D"visible">True</property>
<property name=3D"can_focus">True</property>
<property name=3D"receives_default">True</property>
<property name=3D"label" translatable=3D"yes" context=3D"ye=
s">Cancel</property>
<property name=3D"response_id">0</property>
<signal name=3D"clicked" handler=3D"on_cancelButton_clicked=
"/>
</widget>
<packing>
<property name=3D"position">1</property>
</packing>
</child>
</widget>
<packing>
<property name=3D"expand">False</property>
<property name=3D"pack_type">GTK_PACK_END</property>
</packing>
</child>
</widget>
</child>
</widget>
</glade-interface>
More information about the pygtk
mailing list