Codebase list accerciser / 63ff907
Show accessible ID Samuel Thibault 5 years ago
3 changed file(s) with 58 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
307307 # Child count and description labels
308308 self.child_count_label = ui_xml.get_object('label_acc_child count')
309309 self.desc_label = ui_xml.get_object('label_acc_desc')
310 self.id_label = ui_xml.get_object('label_acc_id')
310311
311312 # configure states tree view
312313 self.states_model = ui_xml.get_object('states_liststore')
340341
341342 self.child_count_label.set_text(str(acc.childCount))
342343 self.desc_label.set_label(acc.description or _('(no description)'))
344 if 'accessibleId' in dir(acc) and acc.accessibleId:
345 self.id_label.set_label(acc.accessibleId)
346 else:
347 self.id_label.set_label(_('(no id)'))
343348
344349 states = [pyatspi.stateToString(s) for s in acc.getState().getStates()]
345350 states.sort()
200200 <property name="expand">True</property>
201201 <property name="fill">True</property>
202202 <property name="position">1</property>
203 </packing>
204 </child>
205 <child>
206 <object class="GtkFrame">
207 <property name="visible">True</property>
208 <property name="can_focus">False</property>
209 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
210 <property name="label_xalign">0</property>
211 <property name="shadow_type">none</property>
212 <child>
213 <object class="GtkAlignment">
214 <property name="visible">True</property>
215 <property name="can_focus">False</property>
216 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
217 <property name="left_padding">12</property>
218 <child>
219 <object class="GtkLabel" id="label_acc_id">
220 <property name="visible">True</property>
221 <property name="can_focus">False</property>
222 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
223 <property name="label" translatable="yes">(no id)</property>
224 <property name="selectable">True</property>
225 <property name="xalign">0</property>
226 <attributes>
227 <attribute name="style" value="italic"/>
228 </attributes>
229 </object>
230 </child>
231 </object>
232 </child>
233 <child type="label">
234 <object class="GtkLabel">
235 <property name="visible">True</property>
236 <property name="can_focus">False</property>
237 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
238 <property name="label" translatable="yes">Id</property>
239 <attributes>
240 <attribute name="weight" value="bold"/>
241 </attributes>
242 </object>
243 </child>
244 </object>
245 <packing>
246 <property name="expand">True</property>
247 <property name="fill">True</property>
248 <property name="position">2</property>
203249 </packing>
204250 </child>
205251 <child>
355401 <packing>
356402 <property name="expand">True</property>
357403 <property name="fill">True</property>
358 <property name="position">2</property>
404 <property name="position">3</property>
359405 </packing>
360406 </child>
361407 <child>
496542 <packing>
497543 <property name="expand">True</property>
498544 <property name="fill">True</property>
499 <property name="position">3</property>
545 <property name="position">4</property>
500546 </packing>
501547 </child>
502548 </object>
305305 msgid "(no description)"
306306 msgstr "(aucune description)"
307307
308 #: ../plugins/interface_view.ui.h:3 ../plugins/interface_view.py:343
309 #: ../plugins/interface_view.py:859
310 msgid "(no id)"
311 msgstr "(aucun identifiant)"
312
308313 #. add description to buffer
309314 #: ../plugins/interface_view.ui.h:4 ../plugins/validate.py:229
310315 #: ../plugins/validate.py:292