
    ?g=                     <    d dl Z d dl d dlmZmZ  G d de      Zy)    N)*)GioGtkc                       e Zd Zd Zd Zy)MyWidgetc                    t         j                  |        || _        || _        || _        | j                  t        j                  t        |d         t        j                  j                        ddd       t        j                         | _        | j                  j                  d| j                  dt        j                  j                          t        j"                  t        d            | _        | j$                  j'                  d| j(                         | j+                  | j$                  d	d	d       | j+                  | j                  d	d	d       y )
Ndescription)halignTr   zcustom-widgettextRandomclickedF)SettingsWidget__init__keysettingsinfo
pack_startr   Label_AlignSTARTEntryentrybindr   SettingsBindFlagsDEFAULTButtonbuttonconnectbutton_pressedpack_end)selfr   r   r   s       I/usr/share/cinnamon/applets/settings-example@cinnamon.org/CustomWidget.pyr   zMyWidget.__init__   s    % 			!D$7"8QSWY]_`aYY[
?DJJ@U@U@]@]^jj8-It':':;dkk5%3djj%2    c                 t    | j                   j                  t        t        j                  dd                   y )Nr   	   )r   set_textstrrandomrandint)r"   argss     r#   r    zMyWidget.button_pressed   s$    

Cq! 456r$   N)__name__
__module____qualname__r   r     r$   r#   r   r      s    37r$   r   )r)   JsonSettingsWidgetsgi.repositoryr   r   r   r   r/   r$   r#   <module>r2      s     ! "7~ 7r$   