
    Hf
                     X    d dl mZ ddl d dlmZ d dlZ G d d      Z G d d	e      Zy)
    )Gtk   )*)TimedOperationNc                       e Zd Zd Zd Zy)AuthConnFactoryc                     || _         y Nparent)selfr   s     8/usr/share/system-config-printer/troubleshoot/Welcome.py__init__zAuthConnFactory.__init__   s	        c                 D    t        j                  | j                  d      S )NT)lock)authconn
Connectionr   r   s    r   get_connectionzAuthConnFactory.get_connection    s    ""DKKd;;r   N)__name__
__module____qualname__r   r    r   r   r   r      s    <r   r   c                       e Zd Zd Zd Zd Zy)Welcomec                    t         j                  | |d       t        j                         }|j	                  d       |j                  d       t        j                         }|j                  dd       |j                  t        j                  t        j                  j                         t        j                  dt        d      z   dz   t        d      z   dz   t        d	      z   
      }|j                  dd       |j                  d       |j                  d       |j!                  |ddd       |j!                  |ddd       |j#                  ||       }y )Nr      r   z"<span weight="bold" size="larger">zTrouble-shooting Printingz	</span>

zThe next few screens will contain some questions about your problem with printing. Based on your answers a solution may be suggested.z

zClick 'Forward' to begin.)labelTF)Questionr   r   HBoxset_spacingset_border_widthImageset_alignmentset_from_stockSTOCK_PRINTIconSizeDIALOGLabel_set_use_markupset_line_wrap
pack_startnew_page)r   troubleshooterwelcomeimageintropages         r   r   zWelcome.__init__$   s1   4;((+R   "%		Q"coos||/B/BC		 D89!:(!)  * +!+ .4!4 89!: ; 	Q"d#T"E5%3E4q1&&6r   c                     | j                   j                         }t        |      }t        |j                  |      | _        || j
                  j                         dS )Nr   )!_authenticated_connection_factory_authenticated_connection)r0   
get_windowr   r   r   oprun)r   r   factorys      r   collect_answerzWelcome.collect_answer;   sP    $$//2 "6* '"8"8H5<-1WW[[^> 	>r   c                 8    | j                   j                          y r
   )r9   cancelr   s    r   cancel_operationzWelcome.cancel_operationD   s    r   N)r   r   r   r   r<   r?   r   r   r   r   r   #   s    7.>r   r   )	gi.repositoryr   basetimedopsr   r   r   r    r   r   r   r   <module>rC      s)   ,   # < <"h "r   