+
    QDbu8 c                   s4   ^ RI t ^ RIt^ RIt^ RIHt ^ RIt^ RIt^ RIt]P                  ! ] P                  ] P                  R7       ^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIt^ RIHt ^ RI5 ^ RIt^ RI5 ^ RIt^ RIt^ RIt^ RIt^ RIt^ R	IHtHt ^ RIt] P>                  t R
 t!R t" ! R R]4      t#]$R8X  d   ^ RI%t%]&! ]%PN                  4      ^8  d   ](! R4       ]%PR                  ! ^4       ]*! R4       R]PV                  R&   ]PX                  ! ]PZ                  R4       ]P\                  ! 4        ]P^                  ! 4       t0R t1]#! 4       t2]2Pg                  R]14       ]2Pi                  ]%PN                  ^,          4       ]0Pk                  4        R# R# )    N)Gtk)domain	localedir)GObject)GLib)GtkGUI)OptionWidget)Z*)busyreadyc                  sP    \         P                  ! 4       p V ^ ,          R8X  d   R# V # )r    /	localhost)cups	getServer)hosts    5/usr/share/system-config-printer/printerproperties.pyCUPS_server_hostnamer   5   s!    >>DAw#~K    c                 &    V P                  4        R # T)hide)widgetevent   &&r   on_delete_just_hider   ;   s    
KKNr   c            
       s  a  ] tR t^?t o R]P
                  P                  RRF3R]P
                  P                  RRF3/t]P                  ]
! R4      ]P                  ]
! R4      ]P                  ]
! R4      ]P                  ]
! R4      /tR tR	 tR
 tRGR ltR tR tR tRHR ltR tR tR tR tR tR tR tR tR tR t R t!R t"R t#RIR lt$RJR lt%R t&R  t'R! t(R" t)R# t*RKR$ lt+R% t,R& t-R' t.R( t/R) t0R* t1R+ t2R, t3RGR- lt4RHR. lt5R/ t6R0 t7R1 t8R2 t9R3 t:R4 t;R5 t<R6 t=R7 t>R8 t?R9 t@RIR: ltAR; tBR< tCR= tDR> tER? tFR@ tGRA tHRB tIRC tJRD tKREtLV tMR# )LPrinterPropertiesDialogdestroyNdialog-closedZIdleZ
ProcessingZBusyZStoppedc           #     s   \         P                   P                  V 4        \        P                  ! \        P                  4      V n        \        P                  ! \        P                  4      V n        RT n        R;T n        T n        \!        4       T n        \!        4       T n        \'        4       T n        RT n        T P-                  R. RNRNRNRNR	NR
NRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR,NR-NR.NR/NR0NR1NR2NR3NR4NR5NR6NR7NR8NR9NR:NR;NR<NR=NR>NR?NR@NRANRBNRCNRDNRENRFNRGNRHNRINRJNRKNRLNRMNRNNRONRPNRQNRRNRSNRTNRUNRVNRWNRXNRYNRZNR[NR\NR]NR^NR_NR`NRaNRbNRcNRdNReNRfNRgNRhNRiNRjNRkNRlNRmNRnNRoNRpNRqNRrNRsNR3N/\.        P0                  Rt7       T P2                  T n        T P4                  P7                  RuT P8                  4       T P:                  T P<                  T P>                  T P@                  3 FM  p\B        PD                  ! 4       pTPG                  4        TPI                  TRv4       TPK                  TRw^ 4       KO  	  T PL                  pTP7                  RxT PN                  4       \B        PP                  ! \S        Ry4      4      p\B        PT                  ! 4       pTPI                  TR4       \B        PD                  ! 4       pTPI                  TR4       TPW                  YPPX                  R4       TPW                  Y`PZ                  R4       TP]                  Rv4       T P^                  Pa                  T4       T P^                  Pc                  4       pTPe                  \B        Pf                  Ph                  4       \B        Pj                  ! \l        \n        4      pT P^                  Pq                  T4       T P2                  P7                  Ru\r        4       ^T n:        \S        Rz4      T Pv                  3\S        R{4      T Px                  3\S        R|4      T Pz                  33 F  w  r\B        Pj                  ! \n        4      p\B        PD                  ! 4       p\B        PP                  ! Y^ R}7      pT
Pq                  T4       T
Pa                  T4       T
Pc                  4       Pe                  \B        Pf                  P|                  4       K  	  T P4                  P7                  R~T P~                  4       \B        PP                  ! R\B        PD                  ! 4       ^ R7      pT P                  Pa                  T4       T P                  Pc                  4       pTP7                  RT P                  4       TPe                  \B        Pf                  P                  4       T P                  \S        R4      .\S        R4      .\S        R4      .\S        R4      ..3T P                  R.R.R.R.R.R..3T P                  \S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      ..3T P                  \S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      .\S        R4      ..3T P                  . 3T P                  \S        R4      .\S        R4      .\S        R4      ..3T P                  . 3T P                  \S        R4      .\S        R4      ..3T P                  \S        R4      .\S        R4      .\S        R4      ..3T P                  . 33
 F  w  pp\B        Pj                  ! \n        4      pT F  pTP                  TR7       K  	  \B        PD                  ! 4       pTPI                  TRv4       TPK                  TRw^ 4       TPq                  T4       K  	  \        P                  ! R\l        ^T P                  T P                  4      \        P                  ! R\l        ^T P                  T P                  . RO\S        R4      R7      \        P                  ! R\        RT P                  T P                  4      \        P                  ! R\l        ^T P                  T P                  . RORvR7      \        P                  ! R\n        RT P                  T P                  . ROR7      \        P                  ! R\l        ^dT P                  T P                  4      \        P                  ! R\l        ^T P                  T P                  . RORvR7      \        P                  ! R\l        ^2T P                  T P                  4      \        P                  ! R\n        RT P                  T P                  RvR7      \        P                  ! R\n        RT P                  T P                  . RORvR7      \        P                  ! R\n        RT P                  T P                  RvR7      \        P                  ! R\n        RT P                  T P                  RR.R7      \        P                  ! R\l        ^T P                  T P                  . RORvR7      \        P                  ! R\        P                  \        P                  ! R4      T P                  T P                  RvR7      \        P                  ! R\n        RT P                  T P                  RvR7      \        P                  ! R\        RT P                  T P                  4      \        P                  ! R\l        ^dT P                  T P                  4      \        P                  ! R\l        ^dT P                  T P                  4      \        P                  ! R\l        ^ T P                  T P                  4      \        P                  ! R\l        RT P                  T P                  4      \        P                  ! R\        RT P                  T P                  4      \        P                  ! R\        RT P                  T P                  4      \        P                  ! R\l        ^ T P                  T P                  4      \        P                  ! R\l        ^ T P                  T P                  4      \        P                  ! R\l        ^ T P                  T P                  4      \        P                  ! R\l        ^ T P                  T P                  4      \        P                  ! R\        RT P                  T P                  4      \        P                  ! R\        RT EP                   T EP                  4      \        P                  ! R\l        ^T EP                  T EP                  4      .p/ T n        / T n        T F9  pTT EP                  TEP                  &   TT EP
                  TEP                  &   K;  	  RT n        RT n        T EP                  4        E\        RT ,          4       R#    \        4        R \        P                  R&   \        P                  ! \        P                  R4       \        P                  ! \        P                  4      T n        \        P                  ! \        P                  4      T n         EL; i)ZCLC_ALL NFr   tvPrinterPropertiesbtnPrinterPropertiesCancelbtnPrinterPropertiesOKbtnPrinterPropertiesApplybtnPrinterPropertiesClosentbkPrinterentPDescriptionentPLocationentPMakeModellblPMakeModel2	entPState
entPDevicelblPDevice2btnSelectDevicebtnChangePPDchkPEnabledchkPAccepting
chkPSharedlblNotPublishedbtnPrintTestPagebtnSelfTestbtnCleanHeadsbtnConflictcmbPStartBannercmbPEndBannercmbPErrorPolicycmbPOperationPolicy
rbtnPAllow	rbtnPDenytvPUsersentPUserbtnPAddUserbtnPDelUserlblPInstallOptionsswPInstallOptionsvbPInstallOptions
swPOptionslblPOptions
vbPOptionsvbClassMemberslblClassMemberstvClassMemberstvClassNotMembersbtnClassAddMemberbtnClassDelMemberbtnRefreshMarkerLevelstvPrinterStateReasonsntbkPrinterStateReasons
sbJOCopiesbtnJOResetCopiescmbJOOrientationRequestedbtnJOResetOrientationRequestedcbJOFitplotbtnJOResetFitplotcmbJONumberUpbtnJOResetNumberUpcmbJONumberUpLayoutbtnJOResetNumberUpLayoutsbJOBrightnessbtnJOResetBrightnesscmbJOFinishingsbtnJOResetFinishingssbJOJobPrioritybtnJOResetJobPriority
cmbJOMediabtnJOResetMedia
cmbJOSidesbtnJOResetSidescmbJOHoldUntilbtnJOResetHoldUntilcmbJOOutputOrderbtnJOResetOutputOrdercmbJOPrintQualitybtnJOResetPrintQualitycmbJOPrinterResolutionbtnJOResetPrinterResolutioncmbJOOutputBinbtnJOResetOutputBin
cbJOMirrorbtnJOResetMirrorsbJOScalingbtnJOResetScalingsbJOSaturationbtnJOResetSaturationsbJOHuebtnJOResetHue	sbJOGammabtnJOResetGammasbJOCpibtnJOResetCpisbJOLpibtnJOResetLpisbJOPageLeftbtnJOResetPageLeftsbJOPageRightbtnJOResetPageRightsbJOPageTopbtnJOResetPageTopsbJOPageBottombtnJOResetPageBottomcbJOPrettyPrintbtnJOResetPrettyPrintcbJOWrapbtnJOResetWrapsbJOColumnsbtnJOResetColumns
tblJOOtherentNewJobOptionbtnNewJobOptionvboxMarkerLevels)r   zdelete-eventTtextclickedZMessagezMembers of this classZOthersZUsers)r   response)ZmarkupchangedzPortrait (no rotation)zLandscape (90 degrees)zReverse landscape (270 degrees)zReverse portrait (180 degrees)Z1Z2Z4Z6Z9Z16zLeft to right, top to bottomzLeft to right, bottom to topzRight to left, top to bottomzRight to left, bottom to topzTop to bottom, left to rightzTop to bottom, right to leftzBottom to top, left to rightzBottom to top, right to leftZNoneZStapleZPunchZCoverZBindzSaddle stitchzEdge stitchZFoldZTrimZBalezBooklet makerz
Job offsetzStaple (top left)zStaple (bottom left)zStaple (top right)zStaple (bottom right)zEdge stitch (left)zEdge stitch (top)zEdge stitch (right)zEdge stitch (bottom)zStaple dual (left)zStaple dual (top)zStaple dual (right)zStaple dual (bottom)zBind (left)z
Bind (top)zBind (right)zBind (bottom)z	One-sidedzTwo-sided (long edge)zTwo-sided (short edge)ZNormalZReverseZDraftZHigh)rowZcopieszorientation-requestedzAutomatic rotation)combobox_mapZspecial_choiceZfitplotz	number-up)r   use_supportedznumber-up-layoutlrtb)r   Z
brightnessZ
finishingszjob-prioritymediaZA4)r   Zsides	one-sidedzjob-hold-untilzno-holdZoutputorderZnormalZreversezprint-qualityzprinter-resolutionz
output-binzface-upZmirrorZscalingZ
saturationZhueZgammai  Zcpig      $@Zlpig      @z	page-leftz
page-rightzpage-topzpage-bottomZprettyprintZwrapZcolumnsz+%s)            )   i   r   r   	   i   )r   ZlrbtZrltbZrlbtZtblrZtbrlZbtlrZbtrl)r   r   r   r   i   i   r   i
   i   i   i   i   i   i   i   i   i   i   i   i   i   i   i   i   i2   i3   i4   i5   )r   ztwo-sided-long-edgeztwo-sided-short-edge)r   r   r   ),  r   r   )r   __init__localeZ	getlocaleZLC_MESSAGESlanguageZLC_CTYPEencodingnonfatalExceptionosenviron	setlocaler   parentprinterppdset	conflictsr   dict
signal_idsupdating_widgetsZ
getWidgetsconfigPACKAGEr   dialogconnect	on_deleter5   r6   r7   r8   r   ZCellRendererTextclear
pack_startZadd_attributerK   !on_btnRefreshMarkerLevels_clickedZTreeViewColumn_ZCellRendererPixbufZset_cell_data_funcset_printer_state_reason_iconset_printer_state_reason_textZset_resizablerL   Zappend_columnget_selectionZset_modeZSelectionModeNONE	ListStoreintstr	set_modelr   static_tabsrG   rH   r;   ZMULTIPLEprinter_properties_responser   (on_tvPrinterProperties_selection_changedZSINGLErP   rT   rV   rZ   r^   r`   rb   rd   rf   rj   appendoptionsZOptionAlwaysShownrN   rO   ZOptionAlwaysShownSpecialrQ   boolrR   rS   rU   rW   rX   rY   r[   r\   r]   r_   ra   rc   re   rg   ZIPPResolutionrh   ri   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   floatrv   rw   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   r   r   r   r   r   job_options_widgetsjob_options_buttonsr   button_monitor	_ppdcacheZconnect_signals
debugprint)selfcomboboxcellbtncolumniconr   	selectionstorenametreeviewmodelcolselr   Zoptsr   options   &                 r   r   Z PrinterPropertiesDialog.__init__O   sw     $'	>",,V-?-?@DM",,V__=DM "&&txu& !&2Y87 Y83Y8:Y8 7Y8 :	Y8
 :Y8 ,Y8 0Y8 -Y8 .Y8 /Y8 *Y8 +Y8 ,Y8 0Y8 -Y8  ,!Y8" .#Y8$ +%Y8& 0'Y8( 1)Y8* ,+Y8, .-Y8. ,/Y82 03Y84 .5Y86 07Y88 49Y8< +=Y8> *?Y8@ )AY8B )CY8D ,EY8F ,GY8J 3KY8L 2MY8N 2OY8P +QY8R ,SY8T +UY8V /WY8X 0YY8Z /[Y8\ 2]Y8^ 2_Y8` 2aY8b 7cY8d 6eY8f 8gY8l +mY8l -?mY8n :oY8n <\oY8p ,qY8p .AqY8r .sY8r 0DsY8t 4uY8t 6PuY8v /wY8v 1GwY8x 0yY8x 2HyY8z 0{Y8z 2I{Y8| +}Y8| ->}Y8~ +Y8~ ->Y8@ /AY8@ 1FAY8B 1CY8B 3JCY8D 2EY8D 4LEY8F 7GY8H <IY8J /KY8J 1FKY8L +MY8L -?MY8N ,OY8N .AOY8P /QY8P 1GQY8R (SY8R *9SY8T *UY8T ,=UY8V (WY8V *9WY8X (YY8X *9YY8Z -[Y8Z /C[Y8\ .]Y8\ 0E]Y8^ ,_Y8^ .A_Y8` /aY8` 1GaY8b 0cY8b 2IcY8d )eY8d +;eY8f ,gY8f .AgY8h +iY8j 0kY8j 2CkY8p 1qY8r 7sY8Z9x  &~~y 	 \	/~ 22 	^T^^< --++--113H ''*DNNt,""D&!43 ))Y F FG ##Qy\2%%(4'##&4'!!4)K)KTR!!4)K)KTRd#""00&9..<<?	C--223sC("",,e4$$,,n.A	C  &')<)<=x[$001wZ'ND MM#&E'')D'';Fu%""6*""$--c.?.?.H.HI 	Z)I)IJ   "c&:&:&=aH  ..4&&447Y M MNc''../ 66456456=>?<=>@A **usecUTFCE 00:;<:;<:;<:;<:;<:;<:;<:;<>? ,, F)H+G*G*F)O,-M*+F)F)F)O,-L/*/01234012345012/01123234012/01123234M*+L/*N+,O,-7/0@ ,K.)34545689
 ++R0--H+I,)* ..G*H+F)&'
 ++R0KFVN MM3'E#&  ''*DtT*  $2e$]F` **Hc1,0OO,0,A,AC 11)30055!-!"#7!8: **ItU,0,<,<,0,B,BD **Ka,0,>,>,0,C,C9L<@	B **,>V,0,D,D,0,I,I<F
G **L#s,0,?,?,0,E,EG **L#q,0,@,@,0,E,E<N =A
B **NC,0,@,@,0,F,FH **GS,0
 -1OO,0,@,@<@B **GS+,0OO,0,@,@-G =AB **,<c,5,0,?,?,0,D,D<@	B **M3,4,0,A,A,0,F,F.6.7-:; **OS!,0,B,B,0,G,G;F<@	B **,@,3,A,A,3,A,A+,N,0,G,G,0,L,L<@B **L#,5,0,?,?,0,D,D<@	B **HdE,0OO,0,A,AC **IsC,0,<,<,0,B,BD **L#s,0,?,?,0,E,EG **E3,0LL,0,>,>@ **GS$,0NN,0,@,@B **E5$,0LL$:L:LN **E5#,0LL$:L:LN **Ka,0,=,=,0,C,CE **L#q,0,>,>,0,D,DF **JQ,0,<,<,0,B,BD **M3,0,?,?,0,E,EG **M4,0,@,@,0,F,FH **FD%,0,?,?A **IsA,0,<,<,0,B,BDu]| $& #% F6<D$$V]]36<D$$V]]3  EDL!K	>#&BJJx fmmR0",,V-?-?@DM",,V__=DMs   A} B2c                s.    \        R V ,          4       V =R# )z-%sN)r   r   r      &r   __del__ZPrinterPropertiesDialog.__del__  s    EDL!Mr   c                s    V P                   P                  V. 4      pVP                  W"P                  W44      34       WPP                   V&   R # N)r   getr   r   )r   
collectionobjr   Zhandlercs   &&&&& r   _connectZ PrinterPropertiesDialog._connect   s<    OOR0	3T345&'
#r   c                s   V'       d   V.pM#\        V P                  P                  4       4      pV FO  pW P                  9   g   K  V P                  V,           F  w  r4VP                  V4       K  	  V P                  V KQ  	  R # r   )listr   keysZ
disconnect)r   r   Zcollr   Z	signal_id   &&   r   _disconnectZ#PrinterPropertiesDialog._disconnect  sj    $Jdoo2256JD&(,(=(=$SNNI. )> OOD) r   c                sp    V P                   '       d$   V P                   P                  4        R V n         R # R # r   )r   r   r   r   r   
do_destroyZ"PrinterPropertiesDialog.do_destroy  s-    '''((003+/D( (r   c                s    \        R V ,          4       V P                  4        RV n        RV n        RV n        V P                  R4       R# )zDESTROY: %sNr   )r   r   r   	ppd_localr   emitr   r   r   r   ZPrinterPropertiesDialog.destroy  s<    MD()		9r   c                s   Wn         V'       g   R # V P                   P                  RV P                  4       V P                   P                  RV P                  4       V P                   P                  RV P                  4       V P                   P                  RV P
                  4       V P                   P                  RV P                  4       R # )Nzprinter-eventzprinter-removedzstate-reason-addedzstate-reason-removedzcups-connection-error)r   r   on_printer_eventon_printer_removedon_state_reason_addedon_state_reason_removedon_cups_connection_error)r   monitorr   r   set_monitorZ#PrinterPropertiesDialog.set_monitor  s    0E0EF0$2I2IJ3T5O5OP5#;;	=6#<<	>r   c                s   W@n         W n        W0n        V'       g   \        P                  ! 4       V n        V'       g   \        P
                  ! 4       V n        V P                  f'   V P                  \        P                  ! RR7      4       V P                  P                  4       V n        V P                  R4       \        P                  ! 4       V n        V P!                  RV P                  RV P"                  4       V P!                  RV P                  RV P$                  4       V'       d   V P&                  P)                  V4       V P+                  WW4R7       V P,                  '       g   R # V P.                  V P0                  V P2                  3 FA  pV P,                  P4                  '       d   VP7                  4        K1  VP9                  4        KC  	  V P,                  P4                  '       d   V P:                  P9                  4        MV P:                  P7                  4        V P=                  4        V P>                  PA                  \C        R4      4       V PD                  PA                  \C        R4      4       V PF                  pVPI                  \J        PL                  ! 4       R R4       \O        4       pV P&                  PQ                  \C        R	4      W3,          4       V P&                  P9                  4        R # )
NF)Zmonitor_jobsnewPrinterGUIzprinter-modifiedzdialog-canceled)r   
encryptionr   zCUPS test pagezyTypically shows whether all jets on a print head are functioning and that the print feed mechanisms are working properly.zPrinter Properties - '%s' on %s))r   _host_encryptionr   r   getEncryptionr   r   r   ZMonitorZget_ppdcacher   r   
newprinterZNewPrinterGUIr   r   on_printer_modifiedon_printer_not_modifiedr   Zset_transient_forloadr   r   r    r!   
discoveredr   showr"   setDataButtonStater1   set_tooltip_textr   r2   r   Z
set_cursorr   ZTreePathr   Z	set_title)r   r   r   r   r   r   r   s   &&&&&  r   r   ZPrinterPropertiesDialog.show,  s/   
%)DJ#114D== gooEBC336/*'558(:(:)4+C+C	E(:(:($*F*F	HKK))62		4z	I|||6622557F ||&&&7 <<"""**//2**//2"..q1A/BC))! -E +F 	G ++S\\^T59#&q ".  /26 > 	?r   c           	     s   V P                   '       g   \        P                  P                  pV\        P                  P                  8X  d   \        R 4      pVR,          pV P                   F&  pW4P                  P                  R,           ,          pK(  	  \        P                  ! V P                  RR\        P                  P                  \        P                  P                  VR7      pVP                  4        VP!                  4        R# V\        P                  P"                  8X  g    V\        P                  P$                  8X  dX   V\        P                  P"                  8X  d   \'        V P(                  4      ^ 8X  d   RpMV P+                  V P                   4      pV\        P                  P$                  8X  d?   X'       g7    V P-                  V P                   P.                  4       T P1                  4        V\        P                  P"                  8X  d	   X'       d    V\        P                  P                  8X  d   RV n        RV n        RV n         VP7                  4        V P9                  R4       V P:                  P<                  P?                  R4      '       d   V P:                  PA                  R4       R# R# R#     L; i)	z^There are conflicting options.
Changes can only be applied after
these conflicts are resolved.z

Z
T)r   ZmodalZdestroy_with_parentmessage_typebuttonsr   NFr   visible)!r   r   ResponseTypeCANCELZREJECTr   r   r   r   MessageDialogr   MessageTypeWARNINGButtonsTypeZCLOSErunr   ZOKZAPPLYlenr   save_printerr   r   r   r   r   r   r   r   ZNewPrinterWindowget_propertyZon_NPCancel)r   r   r   Zmessager   Zfaileds   &&&   r   r   Z3PrinterPropertiesDialog.printer_properties_response_  s   |||''..Hs''... 8 9G vG..==--44 )&&dkk-1t47OO4K4K/2/D/D,3	5F
 JJLNN((+++((...C,,///C4F!4K**DLL9s''---f		4<<,,- ##&)),,,V((///DH!DNDLKKNII'!!22??KK""..5 L 0s   %K Kc                sZ    V P                  V\        P                  P                  4       R # r   )r   r   r   r  )r   r   r      &&&r   r   Z!PrinterPropertiesDialog.on_delete  s    ((&#2B2B2I2IJr   c                s   \        V\        P                  4      '       d   VP                  4       pM\        V\        P                  4      '       d   VP                  4       pM\        V\        P                  4      '       d   VP                  4       pM^\        V\        P                  4      '       d4   VP                  4       pVP                  4       pVP                  V^4      pM\        R4      hV P                  pV P                  VP                  V P                  VP                   V P"                  VP$                  V P&                  VP(                  V P*                  VP,                  '       * V P.                  VP0                  V P2                  VP4                  V P6                  VP8                  V P:                  VP<                  V P>                  VP@                  V PB                  VPD                  /pWa,          pWr8X  d   V PF                  PI                  V4       MV PF                  PK                  V4       V PM                  4        R# )r   zWidget type not supported (yet)N)'
isinstancer   ZCheckButton
get_activeZEntryget_textZRadioButtonZComboBox	get_modelget_active_iter	get_value
ValueErrorr   r$   infor%   locationr)   
device_urir-   enabledr.   	rejectingr/   	is_sharedr5   job_sheet_startr6   job_sheet_endr7   error_policyr8   	op_policyr9   default_allowr   discardaddr   )r   r   valuer   iterZpZ
old_valuesZ	old_value   &&      r   on_printer_changedZ*PrinterPropertiesDialog.on_printer_changed  s   fcoo..%%'E		**OO%E00%%'E--$$'E))+DOOT1-E>??LL  166

OOallqyyQ[[OOakk  1#4#4  1>>$$q{{OOQ__
 &	LL  (LLV$!r   c                s\   VP                  4       '       d   V P                  P                  V4       MV P                  P                  V4       VP                  '       d   V P                  P                  V4       MV P                  P                  V4       V P                  4        V P                  '       dt   V P                  '       d`   WP                  8X  dN   VP                  4       R 8X  d   V P                  P                  4        R# V P                  P                  4        R# R# R# R# )ZTrueN)
is_changedr   r  r  r   r   option_manualfeedoption_inputslotget_current_valueZdisableZenabler   r   r   r   option_changedZ&PrinterPropertiesDialog.option_changed  s    LLV$LL  (NNv&NN""6*!"""t'<'<'<,,,'')V3%%--0%%,,/	 - (="r   c                s   a V P                   P                  4       p. oVP                  V3R lR4       SP                  4        S# )z%return list of usernames from the GUIc                 sT   < SP                  V P                  V^ 4      ^ ,          4      # )r    )r   r   )r   pathr   dataresults   &&&&r   <lambda>Z3PrinterPropertiesDialog.getPUsers.<locals>.<lambda>  s    mmEIIdA$6q$9:r   N)r;   r  Zforeachsort)r   r   r+  s   & @r   	getPUsersZ!PrinterPropertiesDialog.getPUsers  s=    '') ;<@	Br   c                s    V P                   P                  4       pVP                  4        V F  pVP                  V34       K  	  V P	                  V P
                  4       V P                  V P                   4       R# )z$write list of usernames into the GUIN)r;   r  r   r   on_entPUser_changedr<   on_tvPUsers_cursor_changed)r   Zusersr   user   &&  r   	setPUsersZ!PrinterPropertiesDialog.setPUsers  s[    '')DLL$!  	  /''6r   c                sl   V P                   '       g   R# V P                  4       V P                   P                  8w  d'   V P                  P	                  V P
                  4       M%V P                  P                  V P
                  4       V P                  V P
                  4       V P                  4        R# )zDcheck if users in GUI and printer are different
and set self.changedN)	r   r.  except_usersr   r  r;   r  r0  r   r   r   r   checkPUsersChangedZ*PrinterPropertiesDialog.checkPUsersChanged  ss     |||>>t||888LLT]]+LL  /''6!r   c                s    V P                   P                  4       pV'       dG   V P                  P                  4       P	                  ^ V34       V P                   P                  R4       V P                  4        R# )r    r   N)r<   r  r;   r  Zinsertset_textr5  )r   r   r1     && r   on_btnPAddUser_clickedZ.PrinterPropertiesDialog.on_btnPAddUser_clicked  sT    }}%%'MM##%,,Q8MM""2&!r   c                sV   V P                   P                  4       P                  4       w  r#V Uu. uF"  p\        P                  P                  W$4      NK$  	  ppV F5  pVP                  4       pVP                  V4      pVP                  V4       K7  	  V P                  4        R # u upi r   )
r;   r   get_selected_rowsr   ZTreeRowReferencenewZget_pathget_iterremover5  )r   r   r   rowsr   r)  r      &&     r   on_btnPDelUser_clickedZ.PrinterPropertiesDialog.on_btnPDelUser_clicked  s    mm113EEGAEF#$$((%5FC<<>D>>$'DLL  	! Gs   (B&c                sj    V P                   P                  \        VP                  4       4      4       R # r   )r=   set_sensitiver   r  r   r   r   r   r/  Z+PrinterPropertiesDialog.on_entPUser_changed  s"    &&tFOO,='>?r   c                s    VP                  4       pVf   R # VP                  4       w  r4V P                  P                  \	        V4      4       R # r   )r   r9  r>   r@  r   )r   r   r   r   r=  r   r   r0  Z2PrinterPropertiesDialog.on_tvPUsers_cursor_changed   sA    ((+	113&&tDz2r   c                sj   V P                   V,          pVP                  4        VP                  V P                  9   d   V P                  VP                   VP	                  4       '       d   V P
                  P                  V4       MV P
                  P                  V4       V P                  4        R # r   )	r   Zresetr   server_side_optionsr#  r   r  r  r   r   r   r   r7  r   on_job_option_resetZ+PrinterPropertiesDialog.on_job_option_reset	  s~    ))&1;;$222((5LLV$LL  (!r   c                s   V P                   '       g   R # V P                  V,          pVP                  4        VP                  4       '       d5   W P                  VP
                  &   V P                  P                  V4       MMVP
                  V P                  9   d   V P                  VP
                   V P                  P                  V4       V P                  4        R # r   )	r   r   r   r#  rB  r   r  r  r   )r   r   r   r7  r   on_job_option_changedZ-PrinterPropertiesDialog.on_job_option_changed  s    |||))&14:$$V[[1LLV${{d666,,V[[9LL  (!r   c                s   \        V P                  4      pV^ 8X  d   V P                  P                  4        R# V P                  P	                  4       pV F  pV P                  P                  V4       K   	  ^ pV P                   EF.  pV P                  P                  VP                  ^ V^^4       VP                  P                  RR4       V P                  P                  VP                  ^V^^4       VP                  P                  V4       \        P                  P                  \        P                  \        P                  P                   4      pVP#                  RV P$                  4       Wgn        VP                  V4       V P                  P                  V^V^^4       V^,          pEK1  	  V P                  P)                  4        R# )r    N              ?r   )r  other_job_optionsr   r   get_childrenr<  attachlabelset_alignmentselectorr@  r   ZButtonZnew_from_icon_nameZSTOCK_REMOVEZIconSizeZBUTTONr   on_btnJOOtherRemove_clickedpyobjectshow_all)r   editablenZchildrenZchildZioptr   r!  r   draw_other_job_optionsZ.PrinterPropertiesDialog.draw_other_job_options&  sW   ''(6OO  "??//2EOO""E* ))COO""CIIq!Q:II##S#.OO""CLL!Q1=LL&&1**//1A1A141D1DFCKK	4#C#CDLx(OO""31a3FA * 	  #r   c                s    \         P                  ! WVV P                  4      pYFn        T P                  P                  T4       T P                  TR7       Y`P                  T&   YP                  9   d   RTn        T P                  P                  T4       T P                  4        T'       d   TP                  P                  4        R # R #   \         d    \	        4         R # i ; i)NrQ  F)r   r   r(  r  r   is_newrH  r   rT  rB  r   r  r   rM  Z
grab_focus)r   r   r  	supportedrV  rQ  r   s   &&&&&& r   add_job_optionZ&PrinterPropertiesDialog.add_job_option@  s    	))$y*.*=*=?F %%v.##h#7)/  &<<!FM !OO&&)   	 	s   "C C&%C&c                sh   VP                   pV P                  P                  V4       V P                  4        VP                  '       d   V P
                  P                  V4       M%V P
                  P                  VP                  4       V P                  VP                   V P                  4        R # r   )rO  rH  r<  rT  rV  r   r  r  r   rB  r   rC  r7  r   rN  Z3PrinterPropertiesDialog.on_btnJOOtherRemove_clickedU  s|    %%v.##&===LL  ( LLV[[)$$V[[1!r   c                s   V P                   P                  4       pV P                  V4       V P                  P	                  4        V P                   P                  R 4       V P                  P                  R4       V P                  4        R# )r   FN)	r   r  rX  r   rP  r6  r   r@  r   )r   r   r   r7  r   on_btnNewJobOption_clickedZ2PrinterPropertiesDialog.on_btnNewJobOption_clickeda  sh    ##,,.D!  "%%r***E2!r   c                s    V P                   P                  4       p\        V4      ^ 8  ;'       d    W P                  9  pV P                  P                  V4       R# )r    N)r   r  r  rB  r   r@  )r   r   r   Zactiver2  r   on_entNewJobOption_changedZ2PrinterPropertiesDialog.on_entNewJobOption_changedi  sH    ##,,.d)a-IIT1I1I%I**62r   c                s(    V P                  V4       R # r   )rY  rA  r   r   on_entNewJobOption_activateZ3PrinterPropertiesDialog.on_entNewJobOption_activaten  s    ''0r   c                s    V P                   P                  pVP                  R . 4      p\        V P                  4      '       * ;'       d:    V P                   P
                  ;'       d    V P                   P                  '       * p VP                  R4       TpV P                  P                  V4       V P                   P                  ;'       g    \        V P                  4      '       * pV P                  V P                  3 F  pVP                  V4       K  	  RpRpV'       d   V P                   P                  \        P                   ,          ^ 8w  dY    VP                  R4       VP                  R. 4      p	V	 F-  p
V
R8X  d   RpV'       d    MK  V
R8X  g   K!  RpV'       g   K-   M	   WpP"                  3WP$                  33 F/  w  rV'       d   VP'                  4        K  VP)                  4        K1  	  T P,                  '       g   T P                   P.                  '       g   T P                   P0                  P3                  R4      '       g,   T P                   P0                  P3                  R	4      '       dc   T P                   P0                  P5                  R
4      '       d8   T P                   P                  '       g   T P                  P'                  4        MT P                  P)                  4        RpRpT P6                  '       dw   \9        R4       T P:                  P'                  4        T P6                   F@  pTP<                  P?                  4       T P@                  P?                  4       8X  d   RpK>  RpKB  	  MT P:                  P)                  4        \C        R4      p\C        R4      pT'       d
   RT,          pT'       d
   RT,          pT P@                  PE                  T4       T PF                  PE                  T4       T PH                  PK                  4       pT'       d   \M        T PN                  PQ                  4       4       F  pT PN                  PS                  T4      pT PN                  PU                  T4      P?                  4       p TT P@                  P?                  4       8X  d(   TPW                  T34      pTPY                  T^ T4       K  TT PF                  P?                  4       8X  d(   TPW                  T34      pTPY                  T^ T4       K  K  	  T PZ                  P                  \]        T P                  4      ^ 8  ;'       d    T P6                  '       * 4       T P^                  P                  T P6                  '       * 4       R#   \         d    Rp ELi ; i  \         d     ELi ; i   \+        4         EL; i  \         d     EK  i ; i)zdocument-format-supportedzapplication/postscriptFapplication/vnd.cups-commandzprinter-commandsPrintSelfTestPageTZCleanzdnssd:zmdns:z/cupszConflicts detectedzInstallable OptionszPrinter Options	<b>%s</b>N)0r   other_attributesr   r   r   r  r  Zindexr  r1   r@  r   r,   r+   typer   CUPS_PRINTER_COMMANDSr2   r3   r   r   r   r   Zremoter  
startswithZendswithr   r   r4   	tab_labelr  r?   r   Z
set_markuprC   r   r  ranger#   get_n_pagesget_nth_pageget_tab_labelr;  	set_valuer!   r  r    )r   ZattrsZformatsZ	printableZtestpageZ
adjustabler   ZselftestZ
cleanheadsZcommandscommandZcondZinstallableboldZoptionsboldr   ZinstallabletextZoptionstextr   rR  pagerK  r   s   &                     r   r   Z*PrinterPropertiesDialog.setDataButtonStater  s   2	 LL11Eii ;R@G!4<<00 4 4--4 4!\\333 !78$
 !!//:"ll55LLt||9LMJ,,//1$$j11 HJ""T%?%??AEMM#AB  %yy);R@H#+"&99'+H) %  * %/)-J'x % $, #+,<,<!=",.@.@!A!CKKNKKN!C 888\\   ||&&11(;;||&&11'::ll%%..w77LL###!!&&)!!&&)>>>,-!!#..##,,/43J3J3S3S3VV&*O"&K	 ) !!#12)*)O;O%3K**O<##[1((225D,,88;<''44a8((66=FFI
 7 7 @ @ BB$~~t4q/B$"2"2";";">>$~~t4q+> ? = 	&&44c4<<6H16L 7I 7I:>..6H	J##11t~~3EF{  ! !< " 	 Z "  s   AW
 W
 )W
 V$ 7W
 AW
 (0W
 8V8 V8 W
 V8 V8 +V8 ,W
 -V8 /AW
 AW$AW$V51W
 4V55W
 8WW
 WW
 
WW,+W,c                s   Vf   V P                   pRpVP                  pVP                  '       d-   V P                  P	                  \        R4      V,          4       M+V P                  P	                  \        R4      V,          4        VP                  '       gq   V P                  '       d_   V P                  4        V P                  P                  4       '       g	   V'       d'   V P                  P                  WPP                  R7       VP                  '       Ed   \        P                  ! V P                  4      pV'       Eg+   \        P                  ! ^ \        P                  P                   \        P"                  P$                  \        R4      R7      pVP'                  \        R4      4       VP)                  \        P*                  \        P,                  P.                  \        P0                  \        P,                  P2                  4       VP5                  4       pVP7                  4        V\        P,                  P.                  8X  d   V P                  P9                  4        R# RpVP:                  R	,          p	V F7  p
W9   d   V	P=                  V
4       K  V P                  P?                  W4       K9  	  V	 F  p
V P                  PA                  W4       K   	  V PB                  PE                  4       pV PF                  PE                  4       pV PH                  PE                  4       pV PJ                  PM                  4       pV PN                  PM                  4       pV PP                  PM                  4       pWPR                  8w  g	   V'       d   V P                  PU                  W\4       WPV                  8w  g	   V'       d   V P                  PY                  W[4       VP                  '       g4   WPZ                  8w  g	   V'       d   V P                  P]                  W]4       WP^                  8w  g	   V'       d   VPa                  V4       WPb                  8X  g	   V'       d   VPe                  V4       VVPf                  8w  g	   V'       d   VPi                  V4       R
 pV! V Pj                  4      pV! V Pl                  4      pV! V Pn                  4      pV! V Pp                  4      pVVPr                  8w  g   VVPt                  8w  g	   V'       d   VPw                  VV4       VVPx                  8w  g	   V'       d   VP{                  V4       VVP|                  8w  g	   V'       d   VP                  V4       V P                  PM                  4       pV P                  4       pVVP                  8w  g   VVP                  8w  g	   V'       d   VP                  VV4       VP                   F'  pVV P                  9  g   K  VP                  V4       K)  	  V P                  P                  4        F  pVP                  4       '       g0   V'       g   K#  VP                  4       VP                  4       8w  g   KH  \        RVP                  : RVP                  4       : 24       VP                  VP                  VP                  4       4       K  	  T P                  P9                  4        \        4       T nR        T P                  P                  '       gp   RT P                  9  d_   T P                  P	                  \        R4      4        T P                  P                  4       T nV        T P                  P9                  4        T'       g"    TP                  4        T P                  4        T P                  P                  4        R#   \        P                   dB   pTP                  w  pp\        TTT4       T P                  P9                  4         R p?R# R p?ii ; i   \        4         L; i  \        P                   d     Li ; i)NFzmodifying class %szmodifying printer %s)r   zThis will delete this class!)Zflagsr   r   r   zProceed anyway?T:NNNc                 sf    V P                  4       pV P                  4       pVP                  V^4      # )r   )r  r  r  )Zcmbr   r   s   &  r   get_combo_valueZ=PrinterPropertiesDialog.save_printer.<locals>.get_combo_value!  s-    (**-a00r   zSet z = server_settingszfetching server settings)\r   r   is_classr   _begin_operationr   r   getPrinterSettingsZnondefaultsMarkedZ
addPrinterr   getCurrentClassMembersrG   r   r  r  r  r  r   Zformat_secondary_textZadd_buttonsZSTOCK_CANCELr   ZNOZSTOCK_DELETEZYESr  r   _end_operationclass_membersr<  ZaddPrinterToClassZdeletePrinterFromClassr%   r  r$   r)   r-   r  r.   r/   r  ZsetPrinterInfor  ZsetPrinterLocationr  ZsetPrinterDevicer  Z
setEnabledr  ZsetAcceptingr  Z	setSharedr5   r6   r7   r8   r  r  ZsetJobSheetsr  ZsetErrorPolicyr  ZsetOperationPolicyr9   r.  r  r4  Z	setAccess
attributesrB  ZunsetOptionvaluesr#  r&  get_defaultr   Z	setOptionIPPErrorargsshow_IPP_Errorr   r   Z_use_pkZ__dict__ZadminGetServerSettingsrl  r   getAttributesupdatePrinterPropertiesr   Zupdate)r   r   Zsaveallr   Zclass_deletedr   Znew_membersr   r+  Zold_membersZmemberr  r  r  r  Z	acceptingZsharedrk  r  r  r  r  r  r4  r   ess   &&&&                       r   r  Z$PrinterPropertiesDialog.save_printer  s   >[[F||II&&*>(?$(FGII&&*@(AD(HIc	###'')88--//7II((88(<(??@S@ST"{ .."#),)@)@$'OO$8$8!"#A!B	DF
 003D1EF&&(8(8#:J:J:M:M(+(8(8#:J:J:N:NP#ZZ\FNN$s//222		003#$(M &33A6)F,#**62		33FA	 *
 *FII44VB * ((113H''002D113J&&113G**557I__//1F\\!W		((4)))W		,,T<$$$///7		**4<//)W""7+---$$Y/***g!!&)1
 .t/C/CDO+T-?-?@M*D,@,@AL')A)ABI7#:#::!6!667$$_mDw333w&&|4G---**95 OO668M>>+L!6!66 4 44!!->!,,!9!99''/ - 2299;%%''W--0F4F4F4HH171I1I1K!M N%%fkk63K3K3MN < 			  #uyy   %6dmm%K
 II&&*D(EF$'+yy'G'G'I$ II$$'%%(,,/ 	= }} 	VVFQ1a(II$$'		 $!# == s   	_ _ -/_ _ %8_ (_ D&_ /D)_ 2_ ,_ 9_ 2_ (_ -)_ B_ *_ )_ 2A$_ /_ A_  _ A_ `-  `> `*)6`%%`*-`;>aac                sh    V P                   P                  4        F  pVP                  4        K  	  R # r   )r   rt  Z	writebackr'  s   & r   ro  Z*PrinterPropertiesDialog.getPrinterSettingse  s%    ll))+F ,r   c                s    VP                  4       w  r#V'       d	   W0n        R #  V P                  pTP                  T4      '       d   TP	                  T4       R # R #   \         d     R # i ; ir   )Zget_selected%printer_properties_last_iter_selectedZAttributeErrorZiter_is_validZselect_iter)r   r   r   r   r2  r   r   Z@PrinterPropertiesDialog.on_tvPrinterProperties_selection_changedk  se    !..19=6AA
 ""D))%%t, *	 " s   A A+*A+c                s    VP                  4       w  r#VeQ   VP                  4       pVP                  V4      pVP                  V^4      pV P                  P                  V4       R # R # r   )Z
get_cursorr  r;  r  r#   set_current_page)r   r   r)  r   r   r   rR  r>  r   %on_tvPrinterProperties_cursor_changedZ=PrinterPropertiesDialog.on_tvPrinterProperties_cursor_changedz  s]    !,,/&&)E>>4(Dq)A--q1	 r   c                s:    V P                   P                  4        R # r   )r1   r   r   r   r   printTestPageZ%PrinterPropertiesDialog.printTestPage  s    %%(r   c                s   V P                   pV'       g   R # R pV P                  R8w  dg   V P                  P                  R4      pV'       dD   \        P                  P                  \        RVP                  P                  4       ,          4      p\        P                  ! 4       p\        P                  ! R4        \        P                  ! V P                  RV P                  V P                   R7      pR pTP'                  \)        R4      4        T'       dV   \        P                  P+                  T4      '       d1   \-        RT,           4       TP/                  TP0                  TR7      pM'\-        R	4       TP/                  TP0                  4      p TP;                  4        \        P                  ! T4       Te4   \=        \)        R4      \)        R4      T,          T P                  R7       R # R #   \"         d"   p\%        R YpP                  4        R p?R # R p?ii ; i  \        P2                   d   pTP4                  w  ryT\        P6                  8X  dY   T P                  R
8w  dH   T P                  ^ ,          R8w  d0   \9        \)        R4      \)        R4      T P                  4        R p?EL\%        YyT P                  4        R p?EL:R p?ii ; i)NFPageSizeztestpage-%s.psr   )Ztry_as_rootr   r   zprinting test pagezPrinting custom test page )filezPrinting default test pager   r
   Not possible^The remote server did not accept the print job, most likely because the printer is not shared.	SubmittedzTest page submitted as job %dr   )r   r   
findOptionr   r)  Zjoinpkgdata	defchoicelowerr   getUserZsetUserauthconn
Connectionr   r   r   RuntimeErrorrx  rn  r   Zexistsr   r  r   rv  rw  IPP_NOT_AUTHORIZEDshow_error_dialogrq  show_info_dialog)
r   r   r   Zcustom_testpagerS  r1  r   r{  job_idmsgs
   &&        r   on_btnPrintTestPage_clickedZ3PrinterPropertiesDialog.on_btnPrintTestPage_clicked  s   ,, 88u((%%z2C"$'',,w/?/2}}/B/B/D0E#F ||b	##T[[e*.**040@0@BA 	A234	4277>>/#B#B8?JK.= ) ? 896 	
dan ?@6I%)[[2 ?  	D![[1	 }} 	4vvHQT,,,

k)

1$!1^#4#$ &/ $0 $(;;0 0 qt{{33	4sC   <8G4 ,H# >/H# .&H# 4H ?HH #K8A5K3KKc           	     s   V P                   pV'       g   R # \        P                  ! RR7      ;_uu_ 4       pVP                  RV,          4       VP	                  4        V P
                  P                  \        R4      4        RpV P
                  P                  VP                  VVP                  \
        P                  ! 4       R7      p\        \        R4      \        R4      V,          V P                  R	7       V P
                  P%                  4        R R R 4       R #   \
        P                   d   pTP                  w  rgT\
        P                  8X  dJ   T P                   P                  R
8w  d/   \!        \        R4      \        R4      T P                  4        R p?L\#        YgT P                  4        R p?LR p?ii ; i  + '       g   i     R # ; i)NZwt)Zmodez#CUPS-COMMAND
%s
zsending maintenance commandr\  )formatr  r1  r  z'Maintenance command submitted as job %dr  r   r  r  )r   tempfileZNamedTemporaryFileZwriteZflushr   rn  r   r  r   r  r  r   rv  rw  r  r  rx  rq  )r   ri  r   Ztmpfiler  r  r{  r  r!  r   maintenance_commandZ+PrinterPropertiesDialog.maintenance_command  sd   ,,((d33wMM07:;MMOII&&*G(HI8700',,9?7>||7;|| 1 H !!K."# %- #.06#7)-6  II$$'5 43 == 866000LL%%4%q'8'( *3 (4 (,{{4 4 #14;;778 433sD   AGA9D!=G!G6A'F=G"F=8G=GGG	c                (    V P                  R 4       R# )r]  Nr  r   r   r   r   on_btnSelfTest_clickedZ.PrinterPropertiesDialog.on_btnSelfTest_clicked  s      "56r   c                r  )z	Clean allNr  r  r   r   on_btnCleanHeads_clickedZ0PrinterPropertiesDialog.on_btnCleanHeads_clicked  s      +.r   c                st   Vf   \         P                  ! 4       p\        P                  ! \        \        4      pVP                  V4       Rp\        V4       FB  w  rxVP                  VP                  V4      V.4       W8X  g   K/  VP                  V4       RpKD  	  V'       g   VP                  ^ 4       R # R # )NFT)
	ppdippstrZTranslationDictr   r   r   r   	enumerater   r   
set_active)	r   r   rt  r  Ztranslationdictr   r  nrvals	   &&&&&    r   fillComboBoxZ$PrinterPropertiesDialog.fillComboBox  s    "'77:Os"$E"
 (GBLLO//5<=|##B'!
	 ) # r   c                s   \        4       V n        / V n        \        4       V n        V'       g   \        P
                  ! 4       pV'       g   \        P                  ! 4       p\        P                  ! V P                  VVR 7      pWPn        \        P                  ! WP                  4      pW`n         VP                  R,          pWpn        V P                  P                   '       * p VP#                  4       V n        VP#                  4       V n        V P&                  R8w  d   V P&                  P)                  4        T PH                  T PJ                  T PL                  3 F  pTPO                  T4       K  	  T PP                  T PR                  T PT                  T PV                  T PX                  T PZ                  T P\                  T P^                  T P`                  T Pb                  T Pd                  T Pf                  T Ph                  T Pj                  T Pl                  3 F  pTPo                  T4       K  	  T PH                  Pq                  TPr                  4       T PJ                  Pq                  TPt                  4       TPv                  pT PL                  Pq                  T4       T P                  Py                  T PL                  4       T Pz                  T P|                  T PR                  T P~                  T PL                  T PP                  3 F7  pTP                  '       d   TP                  4        K'  TP                  4        K9  	   TP                  '       dI   T P                  '       d   T P                  P                  4        M6T P                  P                  4        MT P                  P                  4         T PZ                  Po                  T4       T P\                  Po                  T4       T P^                  Po                  T4       T P`                  Po                  T4       T Ph                  Pq                  R
4       / T nG        T P                  P                  4        EFa  pTP                  R8X  dQ   T P$                  '       d?   T P$                  P                  R4      pT'       d   TP                  TP                  4       Tp T P                  P                  TP                  ,          p TP                  T P                  P                  9   dC   T P                  P                  TP                  ,          ^,          pTP                  TTR7       MTP                  T4       YP                  TP                  &   TP                  Po                  T4       T'       d   EKF  TP                  Po                  R4       EKd  	  . T nT        T P                  TR7       T P                  P                  P                  4        F  pYP                  9   d   K  TR8X  g   TR8X  d   K%  T P                  P                  T,          pYP                  P                  9   d&   T P                  P                  T,          ^,          pMA\        T\        4      '       d   RR.p\C        T4      P                  4       pMR
p\C        T4      pT P                  TTTRTR7       K  	  T P                  Pq                  R
4       T P                  Po                  T4       T P                  Po                  R4       TP                  '       dZ   T P                  P                  T P                  4      pTR8w  d   T P                  P                  T4       T P                  T4       MT P                  Y4       T P                  4        T P                  4        T P                  4        \        4       T n        T P                  4        T P                  4        R#   \         d     ELYi ; i  \        P*                   d   p	T	P,                  w  rT	\        P.                  8w  d   \1        YT P2                  4       T	\        P4                  \        P.                  39   dC   \7        \9        R4      \9        R4      \:        P<                  P>                  T P2                  4       RT n         Rp	?	ELRp	?	i\@         dz   p	\C        T	4      PE                  R4      '       d+   \G        \9        R4      \9        R4      T P2                  4       h \G        \9        R4      \9        R	4      T P2                  4       h Rp	?	ii ; i   \        4        T P                  P                  4         EL; i   \        4        Rp\        RTP                  : RT: R24        ELF; i  \         d    TP                  R4        ELhi ; i))r   r   r   zserver-is-sharing-printersFz	Raw Queuez3Unable to get queue details. Treating queue as raw.Nr   ZErrorz'The PPD file for this queue is damaged.z2There was a problem connecting to the CUPS server.r   r   r  )rW  zOption 'z' has value 'z' and cannot be edited.rU  zoutput-modez	media-colZtrueZfalse)r  rW  rV  rQ  )hr   r   r   r   r   r   r   r  r  r   cupshelpersZPrinterr   r_  server_is_publishingZKeyErrorr   ZgetPPDr   r   Zlocalizerv  rw  ZIPP_INTERNAL_ERRORrx  r   ZIPP_SERVICE_UNAVAILABLEZshow_dialogr   r   r  ZERRORr  r   rb  r  r$   r%   r)   Zset_editabler+   r,   r-   r.   r/   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r@  r6  r  r  r  r  r'   r&   r*   rm  r   r   r  r0   rP  r   rB  r   rt  r   r  Zset_defaultr  rs  Zpossible_attributesZreinitr   r   r   rH  rT  r   r  r   r  rX  r   r   r#   page_numr@   remove_pagefillClassMembersfillPrinterOptionsupdateMarkerLevelsupdateStateReasonsupdatePrinterPropertiesTreeViewrz  r   )r   r   r   r   r   r   r   Z
publishingrQ  r{  Zmr   Zurir   rS  Zoption_editabler  rW  tab_nrs   &&&&&              r   r   ZPrinterPropertiesDialog.load  s   u>>#D++.J&*,68 	%%tYY7	 112NOJ(2% ||...%	~~'DH$^^-DN~~&'')F ++T->->(F)( ++T->->''););T__++T-?-?++T-E-E}}d&6&68H8HJF   *J 	%%gll3""7#3#34    %T__- **D,>,>(($*:*:(<(<>F >
	(   ,,,((--/((114$$))+ 	**84((2 	**84  ..x8 	r" $& ..558F{{g%$((( hh)):6&&6&Ok//<k{{dll&F&FF$(LL$7$7%EEF%H	 u	Bu-<B,,V[[9
 MM''98++U3I 9J "$##h#7ll--225F111&&K*?LL++F3E999 LL<<VDQG	ud++!' 1IK--0E "IKEu+4U*2   4# 6( 	%%r***H5**E2%%..t/E/EFF|  ,,V4!!(+ ##D3!!,,.u$$'!k  		 }} 	VVFQ D+++qT[[1T11,,. .AkN ( )OO11 KK	) DHH 	 Aw!!5))!1W:#$ &3 $4#';;0 	 "1W:#$ &8 $9#';;0 	r	(  %%'Zk%'&+OV\VaVach ij+  %t$%s   0` %A`& 
e2 e2 .e2 	e2 $e2 'g7Bf`#"`#&e/;B'c((e/5e/6A4e**e/2&f,gg0/g0c                s.   \         P                  ! \        \        4      pV P                  P                  R 4       \        V P                  P                  4       4       F~  pV P                  P                  V4      pV P                  P                  V4      pVP                  R4      pVP                  V^ VP                  4       4       VP                  V^V4       K  	  V P                  P                  4       pV P                  P                  V4       R# FN)r   r   r   r   r#   Zset_show_tabsrd  re  rf  rg  r   rh  r  r   r   r   )r   r   rR  rj  rK  r   r   s   &      r   r  Z7PrinterPropertiesDialog.updatePrinterPropertiesTreeView  s    sC(&&.((4478A##00!4D$$22D9E<<&DOOT1enn&78OOT1a( 9 &&447  **E2r   c           
     s	   V P                   pV'       g   R # V P                  P                  4        F  pV P                  P                  V4       K   	  \	        4       p^ pR\
        3R\
        3R\
        3R\        33 F  w  rVVP                  P                  V. 4      pV\
        8w  d!   \        V4      ^ 8  d    V! V^ ,          4       V U	u. uF  p	V\
        8w  d
   V	^ 8  d   RMT	NK  	  up	W5&   V^ 8X  g   \        V4      V8  g   K  \        V4      pK  	  R FB  p\        W5,          4      V8  g   K  \        RW5,          VR  : R	V: 24       W5,          VR 1 KD  	  \        \        R
 VR,          VR,          VR,          VR,          4      4      p
\        V
4       VP                  \        P                   ,          ^ 8g  pV'       d   V P"                  P%                  4        MV P"                  P'                  4        \        V
4      ^ 8X  dd   \(        P*                  ! \-        R4      R7      pVP/                  R4       VP1                  RR4       V P                  P3                  VRR^ 4       EM^ p\        V
4      p^V^,
          ^,          ,           pV^8  d   ^p\(        P4                  ! 4       pVP7                  R4       VP9                  R4       VP;                  ^4       VP=                  ^4       V P                  P3                  VRR^ 4       V
 EFB  w  ppppVf   RpM2V P>                  R8w  d"   V P>                  PA                  V4      pVe   TpV^,          pV^,          p\(        PB                  ! ^R7      p\(        PB                  ! 4       p\D        PF                  ! VV4      pVPI                  RV,          4       VP3                  VRR^ 4       VP3                  VRR^ 4       \(        P*                  ! VR7      pVPK                  ^
4       VP/                  R4       VP3                  VRR^ 4       VPM                  VVV^^4       V^,          pEKE  	  V P                  PO                  4        R #   \         d9   p\        T: RT: RT: 24       T U	u. uF  p	RNK  	  Mu up	i pp	 R p?ELR p?ii ; iu up	i )Nmarker-colorsmarker-namesmarker-typesmarker-levelsz value not coercible to z: rF  z	Trimming z from c                 s
    WW#3# r    )colorr   r`  level   &&&&r   r,  Z<PrinterPropertiesDialog.updateMarkerLevels.<locals>.<lambda>  s
    !5r   z0Marker levels are not reported for this printer.rK  TFr   )Zspacingz%d%%)r  r  r  r  )(r   r   rI  r<  r   r   r   r_  r   r  Z	TypeErrorr   r   Zmapr`  r   ra  rK   r   r   r   Labelr   Zset_line_wraprL  r   GridZset_column_homogeneousZset_row_homogeneousset_column_spacingset_row_spacingr   ZlocalizeMarkerNameBoxgtkinklevelZGtkInkLevelr   Zset_width_charsrJ  rP  )r   r   r   Zmarker_infoZnum_markersZattrZtypr  r|  ZxZmarkersZcan_refreshrK  Zcolsr=  gridr  r   Zmarker_typer  Zlocalized_namer   r   ZvboxZsubhboxZinklevels   &                         r   r  Z*PrinterPropertiesDialog.updateMarkerLevels  s(   ,, ++88;F!!((&1 < f,c2+S1+S1,e46KT **..b9Cczc3i!m-QL /2!3.1 *-A#$"%.1!3Ka39{#:!3i#6&6DK%&4(.{|<dD E%kl36 s 6"?3">2">2"?35 6 	G||d&@&@@QF'',,/'',,/=AIIA '4 %5 6E&c*!!,,eUE1EK=DqA~%Dax88:D''-$$T*##Q'  "%!!,,dE5!D3:/t[%<DXX&%)XX%@%@%FN%1-!Ao!Aoww*''*&22E5A))6E>:""HdE1=%:		-%%r*##T*ua8T3Q2q - 4;0 	&&)S ! -!%sA!/ 0(+,13,C,C-
!3s*   :Q>S>S	R<#R/.R<<Sc                r  )ZReportLevelsNr  r  r   r   r   Z9PrinterPropertiesDialog.on_btnRefreshMarkerLevels_clicked6  s      .1r   c                s   V P                   pVP                  P                  R . 4      p\        P                  ! \
        \
        4      pRpV F  pVR8X  d    MRpVP                  R4      p\        P                  ! VP                  WPP                  4      pVP                  4       R8X  d   \        P                  pM/\        P                  P                  VP                  4       ,          pVP                  V^ V4       VP!                  4       w  rVP                  V^V
4       K  	  V P"                  P%                  V4       ^ pV'       d   ^pV P&                  P)                  V4       R# )zprinter-state-reasonsFZnoneTNZpaused)r   r_  r   r   r   r   r   statereasonZStateReasonr   r   Z
get_reasonZSTOCK_MEDIA_PAUSEZ
LEVEL_ICONZ	get_levelrh  Zget_descriptionrL   r   rM   r~  )r   r   Zreasonsr   Zanyreasonr   Zrr   Ztitler   rj  s   &           r   r  Z*PrinterPropertiesDialog.updateStateReasons9  s   ,,**..0GLsC(FC<<&D''v~~NA||(*,,"..99!++.IOOT1d+--0MUOOT1d+  	"",,e4D$$55t<r   c                s    VP                  V^ 4      p\        P                  P                  4       p VP	                  V^^ 4      pVP                  RV4       R#   \        P                   d     R# i ; i)r    pixbufN)r  r   Z	IconThemeru  Z	load_iconset_propertyr   ZGError)	r   r   r   r   r   r*  r   Zthemer  s	   &&&&&*   r   r   Z5PrinterPropertiesDialog.set_printer_state_reason_iconT  sa    a()),	__dB2Fx0{{ 		s   %A A21A2c                sJ    VP                  R VP                  V^4      4       R# )r   N)r  r  )r   r   r   r   r   r*  s   &&&&&*r   r   Z5PrinterPropertiesDialog.set_printer_state_reason_text]  s    65??D!#<=r   c                s@   \        R 4       V P                  pV P                  P                  VP                  4       V P
                  P                  VP                  4       V P                  P                  VP                  \        R4      4      pVP                  P                  RR4      p\        V4      ^ 8  d   VRV,           ,          pV P                  P                  V4       \        V P                  4      ^ 8X  Ed   \        R4       V P                  P!                  VP"                  4       V P$                  P!                  VP&                  '       * 4       V P(                  P!                  VP*                  4       V P-                  V P.                  VP0                  VP2                  \4        P6                  4       V P-                  V P8                  VP0                  VP:                  \4        P6                  4       V P-                  V P<                  VP>                  VP@                  \4        PB                  4       V P-                  V PD                  VPF                  VPH                  \4        PJ                  4       V PL                  P!                  VPN                  4       V PP                  P!                  VPN                  '       * 4       V PS                  VPT                  4       V PW                  4        V PY                  4        V P[                  4        R# R# )zupdate printer propertiesZUnknownzprinter-state-messager   z - z.no changes yet: full printer properties updateN).r   r   r)   r6  r  r&   Zmake_and_modelprinter_statesr   stater   r_  r  r(   r   r-   r  r  r.   r  r/   r  r  r5   Zjob_sheets_supportedr  r  Z
job_sheetsr6   r  r7   Zerror_policy_supportedr  Zprinter_error_policyr8   Zop_policy_supportedr  Zprinter_op_policyr9   r  r:   r3  r4  r  r  r  )r   r   r  r  s   &   r   rz  Z/PrinterPropertiesDialog.updatePrinterProperties`  sS   /0,,  !3!34##G$:$:;##'')*97))--/FK<!UV^#E&"HI''8))g.?.?*?@OO&&w'8'89 d22%::%55'224 d00'2N2N%33'224
 d22%<<%22'<<> d66%99%//'99; OO&&w'<'<=NN%%'*?*?&?@NN7//0 ##&##&003G #r   c           	     sl   V P                   P                  V P                  4      pVR8w  d   V P                   P                  V4       V P                  P                  4        F  pV P                  P                  V4       K   	  V P                  P                  4        F  pV P                  P                  V4       K   	  V P                   P                  V P                  4      R8X  d<   V P                   P                  V P                  V P                  V P                  4       V P                  '       g   V P                   P                  V P                  4      pVR8w  d   V P                   P                  V4       V P                   P                  V P                  4      pVR8w  d   V P                   P                  V4       R# V P                  pVP                  4        V P                  P                  4        RpV P                  P                    EF  pVP"                  R8X  d   RpV P                  pV P                   P                  V P                  4      pVR8X  dQ   V P                   P                  V P                  \$        P&                  ! VP(                  R7      V P                  4       V P*                  p	EM\,        P                  P/                  VP(                  4      p
\$        P0                  ! R\2        P4                  ! V
4      ,          R7      pVP7                  4       P9                  R4       VP;                  \$        P<                  P>                  4       V P                  PA                  VRR^ 4       \$        PB                  PE                  RRRR4      pVPG                  ^^^^ 4       VPI                  V4       V P                  p	\$        PJ                  ! 4       pVPM                  ^4       VPO                  ^4       VPI                  V4       ^ pR;V n(        V n)        \U        VPV                  4       EF  w  rVPX                  R	8X  d   K  V^,          p\[        WW	R
7      pVP]                  VP^                  ^ V^^4       \$        P`                  ! 4       pVPb                  '       d}   \$        PB                  PE                  RRRR4      pVPG                  ^ ^ ^ ^4       VPI                  VPb                  4       VP]                  V^V^^4       VP]                  V^V^^4       MVP]                  V^V^^4       VPA                  VPd                  RR^ 4       VV PV                  VPX                  &   VPd                  Pg                  V4       VPX                  R8X  d   VV n(        EKs  VPX                  R8X  g   EK  VV n)        EK  	  EK  	  V'       gH   V P                   P                  V P                  4      pVR8w  d   V P                   P                  V4       V PV                  Pi                  4        F8  pVPk                  4       pV'       g   K  V Pl                  PI                  V4       K:  	  V P                  Po                  4        V P                  Po                  4        R# )r   NFZInstallableOptionsTr  r^  rG  g      ?Z
PageRegion)rc  Z	InputSlotZ
ManualFeedr  )8r#   r  rE   r  rA   rI  r<  rD   rB   insert_pagerC   r   r   r@   ZmarkDefaultsr   ZoptionGroupsr   r   r  r   r?   r  r   ZFramehtmlZescapeZget_label_widgetZset_use_markupZset_shadow_typeZ
ShadowTyper   r   Z	Alignmentr:  Zset_paddingr  r  r  r  r%  r$  r  r   Zkeywordr   rJ  ZconflictIconr  rK  rM  r@  rt  ZcheckConflictsr   rP  )r   r   rQ  r  r   r   ZhasInstallableOptionsZgroupZ	containerrc  Z
group_nameZframer  r=  r  r   ZoZhboxZar   s   &&&                 r   r  Z*PrinterPropertiesDialog.fillPrinterOptions  s   !!**4+>+>?R<((0 ,,99;F""))&1 < oo224FOO""6* 5 $$T__5;((!1!143C3CE xxx%%..t/E/EFF|  ,,V4%%..t?F|  ,,V4hh##% % ^^00Ezz11(,% 22	))2243I3IJR<$$001G1G141L151A1AC !33	&]]..

;
		dkk:6N(NO&&(77=%%s~~':':;**E5%CMM--c3SA	 %%q"a3		9% ,,	88:D##A&  #MM$D >BAD!D$:'6
>>\1	 dHANNAr1a8wwy777))#sC=AMM1aA.EE177OKK1b!Q/KKaQ2KKaQ2

E5!</0V^^,

((2>>[0,-D)^^|3-.D*- 7M 1~ %%%..t/E/EFF|  ,,V4 ll))+F--/Iy""6* ,
 	'')  "r   c                s   V P                   P                  V4       V P                  P                  V4       V P                  P	                  V P
                  4      pVR8w  d   V P                  P                  V4       V P                  P	                  V P                  4      R8X  d<   V P                  P                  V P                  V P                  V P                  4       V P                  P                  4       pV P                  P                  4       pVP                  4        VP                  4        \        V P                   P#                  4       4      pVP%                  4        V F  pW`P&                  P(                  8w  g   K  W`P&                  P*                  9   d   VP-                  V34       KM  V P&                  P.                  \0        P2                  ,          '       d   K  VP-                  V34       K  	  R# )r   Nr  )rI   r@  rJ   r#   r  rB   r  rE   r  rF   r   rG   r  rH   r   r   r   Zget_printersr-  r   r   rr  r   r`  r   ZCUPS_PRINTER_CLASS)r   rQ  r  Zmodel_membersZmodel_not_membersZnamesr   r>  r   r  Z(PrinterPropertiesDialog.fillClassMembers  sx   ,,X6,,X6 !!**4??;R<((0 $$T%8%89R?((##T%9%9  " ++557 22<<>!dmm0034

D||(((<<555!(($2**T-D-DDD%,,dX6 r   c                s   \         P                  ! V P                  V P                  4       \         P                  ! V P                  4      V P
                  P                  8w  d'   V P                  P                  V P                  4       M%V P                  P                  V P                  4       V P                  4        R # r   )r   moveClassMembersrH   rG   rp  r   rr  r   r  r  r   r  r   r   on_btnClassAddMember_clickedZ4PrinterPropertiesDialog.on_btnClassAddMember_clicked  s    ##D$:$:$($7$7	9,,T-@-@AT\\E_E__LLT001LL  !4!45!r   c                s   \         P                  ! V P                  V P                  4       \         P                  ! V P                  4      V P
                  P                  8w  d'   V P                  P                  V P                  4       M%V P                  P                  V P                  4       V P                  4        R # r   )r   r  rG   rH   rp  r   rr  r   r  r  r   r  r   r   on_btnClassDelMember_clickedZ4PrinterPropertiesDialog.on_btnClassDelMember_clicked'  s    ##D$7$7$($:$:	<,,T-@-@AT\\E_E__LLT001LL  !4!45!r   c                s   T;'       dO    V P                   R J;'       d9    V P                   P                  ;'       g    \        V P                  4      '       * pV P                  V P
                  3 F  pVP                  V4       K  	  R # r   )r   r   r   r   r,   r+   r@  )r   Z	sensitiver   r7  r   sensitise_new_printer_widgetsZ5PrinterPropertiesDialog.sensitise_new_printer_widgets0  s     / /\\-/ /,,11 . .-/ 	 ((++-F  ),-r   c                r  r  r  r   r   r   desensitise_new_printer_widgetsZ7PrinterPropertiesDialog.desensitise_new_printer_widgets9  s    **E2r   c           	     st   \        V P                  4       V P                  4        V P                  P	                  R V P
                  P                  V P
                  P                  V P                  V P                  V P                  R7      '       g   V P                  4        \        V P                  4       R# )Zdevice)r  r   r   r   r   N)r   r   r  r   initr   r  r   r   r   r  r	   r  r   r   on_btnSelectDevice_clickedZ2PrinterPropertiesDialog.on_btnSelectDevice_clicked=  s    dkk,,/!!&&xDLL<S<S,0LL,=,=,0JJ262B2B.2kk	 ' ; ;
 ..1t{{r   c           
     s   \        V P                  4       V P                  4        V P                  P	                  R V P
                  P                  V P                  V P
                  P                  V P                  V P                  V P                  R7      '       g   V P                  4        \        V P                  4       R# )r   )r  r   r   r   r   r   N)r   r   r  r   r  r   r  r   r   r   r   r  r	   r  r   r   on_btnChangePPD_clickedZ/PrinterPropertiesDialog.on_btnChangePPD_clickedJ  s    dkk,,/!!&&u9P9P+/88,0LL,=,=,0JJ262B2B.2kk ' ; ; ..1t{{r   c                sn   \        R 4       V P                  4        V P                  P                  R4      '       d]   V P                  '       dI    V P                  P                  4        V'       d   V P                  V4       R# V P                  4        R# R# R#   \        P                   d     R# i ; i)zon_printer_modified calledr   N)
r   r  r   r	  r   ry  r   rz  r   rv  )r   r   r   Zppd_has_changedr  r   r   Z+PrinterPropertiesDialog.on_printer_modifiedX  s    01**-;;##Y//DLLL**-"IIt$003 5A/ == s   !B 2B B B43B4c                r   r   r  )r   r   r   r   r   Z/PrinterPropertiesDialog.on_printer_not_modifiedf  s    **-r   c                s,    V P                  R VR4       R # )NF)r   )r   monr   Z	eventnamer   s   &&&&&r   r   Z(PrinterPropertiesDialog.on_printer_eventj  s      $7r   c                sx   V P                   P                  R 4      '       da   V P                  '       dO   V P                  P                  V8X  d4   V P                   P	                  \
        P                  P                  4       V P                  '       d'   V P                  P                  V8X  d
   RV n        R# R# R# r   N)r   r	  r   r   r   r   r   r  )r   r  r   r
  r   r   Z*PrinterPropertiesDialog.on_printer_removedm  sw    KK$$i00LLLT\\..'9KK  #"2"2"9"9:<<<DLL--8DL 9<r   c                X   V P                   P                  R 4      '       dm   V P                  '       dY   V P                  P                  VP	                  4       8X  d.    V P                  P                  4        V P                  4        R# R# R# R#   \        P                   d     R# i ; ir  	r   r	  r   r   Zget_printerry  rz  r   rv  r   r  r  r
  r   r   Z-PrinterPropertiesDialog.on_state_reason_addedu      KK$$i00LLLT\\..&2D2D2GG**-,,/ HL 1
 ==    *B B)(B)c                r  r  r  r  r
  r   r   Z/PrinterPropertiesDialog.on_state_reason_removed~  r  r  c                s    R # r   r  )r   r  r   r   r   Z0PrinterPropertiesDialog.on_cups_connection_error  s    r   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r%  r$  r   rH  r   r   r   r   r}  r  rl  rB  r   r   r   r  r   )NNNr   )r   r   TTr  )N__name__Z
__module__Z__qualname__Z__firstlineno__r   ZSignalFlagsZRUN_LASTZ__gsignals__r   ZIPP_PRINTER_IDLEr   ZIPP_PRINTER_PROCESSINGZIPP_PRINTER_BUSYZIPP_PRINTER_STOPPEDr  r   r   r   r   r   r   r   r   r   r   r"  r(  r.  r3  r5  r8  r?  r/  r0  rD  rE  rT  rX  rN  rY  rZ  r[  r   r  ro  r   r  r  r  r  r  r  r  r   r  r  r   r  r   r   rz  r  r  r  r  r  r  r  r  r   r   r   r   r   r   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r   ?   s     	7..77rB7..77rB
L
 ,,V922\?,,V9//Y<*Nk"Z(
*0
>1f-6bK#"J0(7"""@3
"""$4**
""3
1gGRHT-2):2x (D7/$"J"X3^*@2=6>.4`m#b7:""-3
.8  r   r   Z__main__zSpecify queue nameTZuiZSYSTEM_CONFIG_PRINTER_UIr   c                 sN    V P                  4        \        P                  4        R # r   )r   loopZquit)r   r   r   on_dialog_closedr    s    		r   r   )6r   r   r  Zgi.repositoryr   r   r   ZgettextZinstallr   r   r  r   r   r   Zguir   r  Zoptionwidgetsr   Zdebugr  Zerrordialogsr  Zppdcacher  r   r   r   r	   r  Z
pkgdatadirr  r   r   r   r  Zsysr  ZargvZprintZexitZset_debuggingr   r   r   r  ZMainLoopr  r  Z
propertiesr   r   r  r  r   r   <module>r     s;  2       v~~1A1A B  !    &         " 


Jf JX: z
CHH~"#!4-1BJJ)*
fmmR(NND )+J)9:OOSXXa[!HHK) r   