File: pygtk-gtkcellrendereraccel.xml

package info (click to toggle)
pygtk 2.24.0-5.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 26,760 kB
  • ctags: 8,260
  • sloc: xml: 182,079; sh: 10,297; python: 10,161; ansic: 2,861; makefile: 1,358
file content (296 lines) | stat: -rw-r--r-- 10,950 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
<?xml version="1.0" standalone="no"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
    "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">

<refentry id="class-gtkcellrendereraccel">

  <refnamediv>
    <refname>gtk.CellRendererAccel</refname>
      <refpurpose>an object that renders a keyboard accelerator in a cell
      (new in PyGTK 2.10)</refpurpose>
  </refnamediv>

  <refsect1>
    <title>Synopsis</title>

    <classsynopsis language="python">
      <ooclass><classname>gtk.CellRendererAccel</classname></ooclass>
      <ooclass><classname><link linkend="class-gtkcellrenderertext">gtk.CellRendererText</link></classname></ooclass>
      <constructorsynopsis language="python">
        <methodname><link linkend="constructor-gtkcellrendereraccel">gtk.CellRendererAccel</link></methodname>
        <methodparam></methodparam>
      </constructorsynopsis>
</classsynopsis>

  </refsect1>

  <refsect1>
    <title>Ancestry</title>

<synopsis>+-- <link linkend="class-gobject">gobject.GObject</link>
  +-- <link linkend="class-gtkobject">gtk.Object</link>
    +-- <link linkend="class-gtkcellrenderer">gtk.CellRenderer</link>
      +-- <link linkend="class-gtkcellrenderertext">gtk.CellRendererText</link>
        +-- <link linkend="class-gtkcellrendereraccel">gtk.CellRendererAccel</link>
</synopsis>

  </refsect1>

  <refsect1 id="properties-gtkcellrendereraccel">
    <title>gtk.CellRendererAccel Properties</title>

    <para><link linkend="properties-gtkobject">gtk.Object Properties</link></para>
    <para><link linkend="properties-gtkcellrenderer">gtk.CellRenderer Properties</link></para>
    <para><link linkend="properties-gtkcellrenderertext">gtk.CellRendererText Properties</link></para>

    <blockquote role="properties">
      <informaltable pgwide="1" frame="none">
	<tgroup cols="3">
	  <colspec column="1" colwidth="1in"/>
	  <colspec column="2" colwidth="1in"/>
	  <colspec column="3" colwidth="4in"/>
	  <tbody>

	    <row valign="top">
	      <entry>"accel-key"</entry>
	      <entry>Read-Write</entry>
	      <entry>The keyval of the accelerator. Default value: 0. This
	      property is available in GTK+ 2.10 and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"accel-mode"</entry>
	      <entry>Read-Write</entry>
	      <entry>Determines if the edited accelerators are GTK+
	      accelerators. If they are, consumed modifiers are suppressed,
	      only accelerators accepted by GTK+ are allowed, and the
	      accelerators are rendered in the same way as they are in
	      menus. one of the <xref
	      linkend="gtk-cellrendereraccel-mode-constants"
	      endterm="gtk-cellrendereraccel-mode-constants-title"></xref>. Default
	      value:
	      <literal>gtk.CELL_RENDERER_ACCEL_MODE_GTK</literal>. This
	      property is available in GTK+ 2.10 and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"accel-mods"</entry>
	      <entry>Read-Write</entry>
	      <entry>The modifier mask of the accelerator. One of the <xref
	      linkend="gdk-modifier-constants"
	      endterm="gdk-modifier-constants-title"></xref>. This property
	      is available in GTK+ 2.10 and above.</entry>
	    </row>

	    <row valign="top">
	      <entry>"keycode"</entry>
	      <entry>Read-Write</entry>
	      <entry>The hardware keycode of the accelerator. Note that the
	      hardware keycode is only relevant if the key does not have a
	      keyval. Normally, the keyboard configuration should assign
	      keyvals to all keys.  Default value: 0. This property is
	      available in GTK+ 2.10 and above.</entry>
	    </row>

	  </tbody>
	</tgroup>
      </informaltable>
    </blockquote>

  </refsect1>

  <refsect1 id="signal-prototypes-gtkcellrendereraccel">
    <title>gtk.CellRendererAccel Signal Prototypes</title>

    <para><link linkend="signal-prototypes-gobject">gobject.GObject Signal Prototypes</link></para>
    <para><link linkend="signal-prototypes-gtkobject">gtk.Object Signal Prototypes</link></para>
    <para><link linkend="signal-prototypes-gtkcellrenderer">gtk.CellRenderer Signal Prototypes</link></para>
    <para><link linkend="signal-prototypes-gtkcellrenderertext">gtk.CellRendererText Signal Prototypes</link></para>

    <variablelist>
      <varlistentry>
        <term>"<link linkend="signal-gtkcellrendereraccel--accel-cleared">accel-cleared</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>cellrendereraccel</parameter></methodparam>
            <methodparam><parameter>path_string</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
    </variablelist>

    <variablelist>
      <varlistentry>
        <term>"<link linkend="signal-gtkcellrendereraccel--accel-edited">accel-edited</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>cellrendereraccel</parameter></methodparam>
            <methodparam><parameter>path_string</parameter></methodparam>
            <methodparam><parameter>accel_key</parameter></methodparam>
            <methodparam><parameter>accel_mods</parameter></methodparam>
            <methodparam><parameter>hardware_keycode</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
    </variablelist>

  </refsect1>

  <refsect1>
    <title>Description</title>

    <para><link
    linkend="class-gtkcellrendereraccel"><classname>gtk.CellRendererAccel</classname></link>
    displays a keyboard accelerator (i.e. a key combination like
    <keycombo><keycap>Control</keycap><keycap>a</keycap></keycombo>). If the
    cell renderer is editable, the accelerator can be changed by simply
    typing the new combination.</para>

  </refsect1>

  <refsect1>
    <title>Constructor</title>

    <refsect2 id="constructor-gtkcellrendereraccel">
      <title>gtk.CellRendererAccel</title>

      <programlisting><constructorsynopsis language="python">
        <methodname>gtk.CellRendererAccel</methodname>
        <methodparam></methodparam>
      </constructorsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>the new cell renderer</simpara></listitem>
        </varlistentry>
      </variablelist>

      <note>
        <para>This constructor is available in PyGTK 2.10 and above.</para>
      </note>

      <para>Creates a new <link
      linkend="class-gtkcellrendereraccel"><classname>gtk.CellRendererAccel</classname></link>.</para>

    </refsect2>

  </refsect1>

  <refsect1>
    <title>Signals</title>

    <refsect2 id="signal-gtkcellrendereraccel--accel-cleared">
      <title>The "accel-cleared" Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>cellrendereraccel</parameter></methodparam>
	  <methodparam><parameter>path_string</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>cellrendereraccel</parameter>&nbsp;:</term>
	  <listitem><simpara>the cellrendereraccel that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>path_string</parameter>&nbsp;:</term>
	  <listitem><simpara>the path identifying the row of the cleared
	  cell as a string</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This signal is available in GTK+ 2.10 and above.</para>
      </note>

      <para>The "accel-cleared" signal is emitted when the user has removed
      the accelerator.</para>

    </refsect2>

    <refsect2 id="signal-gtkcellrendereraccel--accel-edited">
      <title>The "accel-edited" Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>cellrendereraccel</parameter></methodparam>
	  <methodparam><parameter>path_string</parameter></methodparam>
	  <methodparam><parameter>accel_key</parameter></methodparam>
	  <methodparam><parameter>accel_mods</parameter></methodparam>
	  <methodparam><parameter>hardware_keycode</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>cellrendereraccel</parameter>&nbsp;:</term>
	  <listitem><simpara>the cellrendereraccel that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>path_string</parameter>&nbsp;:</term>
	  <listitem><simpara>the path identifying the row of the edited cell
	  as a string</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>accel_key</parameter>&nbsp;:</term>
	  <listitem><simpara>the new accelerator keyval </simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>accel_mods</parameter>&nbsp;:</term>
	  <listitem><simpara>the new acclerator modifier
	  mask</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>hardware_keycode</parameter>&nbsp;:</term>
	  <listitem><simpara>the keycode of the new
	  accelerator</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This signal is available in GTK+ 2.10 and above.</para>
      </note>

      <para>The "accel-edited" signal is emitted when the user has selected
      a new accelerator.</para>

    </refsect2>

  </refsect1>

</refentry>