
    Kc
                     d    d dl mZ ddlT d dlmZ d dlZ G d d          Z G d d	e          ZdS )
    )Gtk   )*)TimedOperationNc                       e Zd Zd Zd ZdS )AuthConnFactoryc                     || _         d S Nparent)selfr   s     8/usr/share/system-config-printer/troubleshoot/Welcome.py__init__zAuthConnFactory.__init__   s        c                 8    t          j        | j        d          S )NT)lock)authconn
Connectionr   r   s    r   get_connectionzAuthConnFactory.get_connection    s    "DKd;;;;r   N)__name__
__module____qualname__r   r    r   r   r   r      s2          < < < < <r   r   c                        e Zd Zd Zd Zd ZdS )Welcomec                 
   t                               | |d           t          j                    }|                    d           |                    d           t          j                    }|                    dd           |                    t          j	        t          j
        j                   t          j        dt          d          z   dz   t          d          z   dz   t          d	          z   
          }|                    dd           |                    d           |                    d           |                    |ddd           |                    |ddd           |                    ||           }d S )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__$   s   4;;;(++R     "%%%	Q"""cos|/BCCC	 D899!:(!)  * + +!+ .4!4 899!: ; ; ; 	Q"""d###T"""E5%333E4q111&&66r   c                     | j                                         }t          |          }t          |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;   s[    $//22 "6** '"8HHH5<-1W[[^^> > 	>r   c                 8    | j                                          d S r
   )r9   cancelr   s    r   cancel_operationzWelcome.cancel_operationD   s    r   N)r   r   r   r   r<   r?   r   r   r   r   r   #   sA        7 7 7.> > >    r   r   )	gi.repositoryr   basetimedopsr   r   r   r    r   r   r   r   <module>rC      s   ,           # # # # # # < < < < < < < <" " " " "h " " " " "r   