config root man

Current Path : /usr/local/lib/python2.5/idlelib/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/idlelib/configDialog.pyc

hRc@sdZddkTddkZddkZddkZddkZddkZddklZddk	l
Z
ddklZddk
lZddklZdd	klZd
efdYZedjo?eZeed
dddihe_eindS(sIDLE Configuration Dialog: support user customization of IDLE by GUI

Customize font faces, sizes, and colorization attributes.  Set indentation
defaults.  Customize keybindings.  Colorization and keybindings can be
saved as user defined sets.  Select startup options including shell/editor
and default window size.  Define additional help sources.

Note that tab width in IDLE is currently fixed at eight due to Tk issues.
Refer to comments in EditorWindow autoindent code for details.

i(t*N(tidleConf(t
DynOptionMenu(t
TabPageSet(t
GetKeysDialog(tGetCfgSectionNameDialog(tGetHelpSourceDialogtConfigDialogcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.dId-Z0d.Z1d/Z2d0Z3d1Z4d2Z5d3Z6d4Z7d5Z8d6Z9d7Z:d8Z;d9Z<d:Z=d;Z>d<Z?d=Z@d>ZAd?ZBd@ZCdAZDdBZEdCZFdDZGdEZHdFZIdGZJdHZKRS(JcCsUti|||idd|id|id|idfhd0d<d1d<d2d<d3d<d4d<d5d<d6d<d7d<d8d <d9d#<d:d&<d;d)<d<d,<|_|i|i|i	d-t
d.t
|i||i|i
d/|i||_|ii|i|i|idS(=Ntborderwidthis+%d+%diitnormalt00sNormal Texttkeywordt01sPython Keywordst
definitiont02sPython Definitionstbuiltint03sPython Builtinstcommentt04sPython Commentststringt05sPython Stringsthilitet06s
Selected Textthitt07s
Found Texttcursort08tCursorterrort09s
Error Texttconsolet10sShell Normal Texttstdoutt11sShell Stdout Texttstderrt12sShell Stderr TexttheighttwidthtWM_DELETE_WINDOW(R	R
(RR(R
R(RR(RR(sstringR(RR(RR(scursorR(serrorR(RR(sstdoutR!(sstderrR#(tToplevelt__init__t	configuretgeometrytwinfo_rootxtwinfo_rootyt
themeElementstResetChangedItemst
CreateWidgetst	resizabletFALSEt	transienttgrab_settprotocoltCanceltparentttabPagest	focus_settLoadConfigstAttachVarCallbackstwait_window(tselfR6ttitle((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR(s8
											



	


cCst|dddddg|_|iit|}t|ddd|id	t|_t|dd
d|id	t|_	t|ddd|i
d	t|_t|ddd|id	t|_
|i|i|i|i|iid
tdddd|i	id
tdddd|iid
tdddd|i
id
tdddd|id
t|iid
tdtdtdS(Nt	pageNamess
Fonts/TabstHighlightingtKeystGeneralttexttHelptcommandt	takefocustOktApplyR5tsidetpadxitpadytexpandtfill(RR7t
ChangePagetFrametButtonRCR1t
buttonHelpRFtbuttonOkRGtbuttonApplyR5tbuttonCanceltCreatePageFontTabtCreatePageHighlighttCreatePageKeystCreatePageGeneraltpacktRIGHTtLEFTtBOTTOMtTOPtTRUEtBOTH(R<tframeActionButtons((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR/?s,	




cCs't||_t||_t||_t||_ti|d-|_	|i
idd}t|dddt
}t|dddt
}t|d	d
}t|}t|}t|dtd	d}t|d
ddtdt|_|iid|it|}|id|ii|iid|it|d	d}	t||idd|i|_t|d|iddddd	dd|i}
t|dtdd}t|d	ddtd|i	|_t|}t|dtd	d}
t |d|iddd d!d"dd#dd$d%|_!|i"d&td'dd(dd)t#d*t$|i"d&td'dd(dd*t%|i"d&t&d+t'd'dd(d|i"d&t&d'dd(dd*t(|i"d&t&d'dd(dd*t(|i"d&t&d+t'|ii"d&td)t#d*t(|i"d&td*t%|	i"d&td+t'|ii"d&td+t'|
i"d&td+t'd'd,|i"d&t&d'dd(dd)t#d*t$|ii"d)t#d*t$|i"d&t&d'dd(dd*t$|
i"d&t&d+t'd'd|i!i"d&t&d'dd*t(|S(.Ntcourieri
R	s
Fonts/TabstpageRitreliefRBsSet Base Editor FonttjustifysFont :R$iREtexportselections<ButtonRelease-1>RDtyscrollcommandsSize :tvariabletonvalueitoffvalueitBolds,AaBbCcDdEe
FfGgHhIiJjK
1234567890
#:+=(){}[]tfontsPython Standard: 4 Spaces!tlabelsIndentation Widthtorientt
horizontalttickintervaltfrom_ttoiRHRIRJRKRLtanchori(R`i
snormal()t	StringVartfontSizet
BooleanVartfontBoldtfontNametIntVartspaceNumttkFonttFontteditFontR7tpagesRNtGROOVEtLabelRZtListboxR1tlistFontNametbindtOnListFontButtonReleaset	ScrollbartconfigtyviewtsetRtNonet
SetFontSampletoptMenuFontSizetCheckbuttontSOLIDtlabelFontSampletScalet
scaleSpaceNumRXR]R^tYR\tWtX(R<tframet	frameFonttframeIndenttlabelFontTitlet
frameFontNametframeFontParamtlabelFontNameTitlet
scrollFonttlabelFontSizeTitlet
checkFontBoldtframeFontSampletframeIndentSizetlabelSpaceNumTitle((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRTXsf			(""""("c Cs_t||_t||_t||_t||_t||_t||_t||_|i	i
dd}t|dddt}t|dddt}t
|dtddddXddd
ddddtdddt	|_|i}|idd|idddYdZd[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwf}x)|D]!}|it|d|dqWx;|iiD]*}|i|i|dd=|d>qW|id?tt|dtdd|_t|}t|d@dA}	t|id@dBdC|idd}
t|i|iddd|_ t!|dD|idEdd@dFdC|i"|_#t!|dD|idEdd@dGdC|i"|_$|ii%dt|d@dHdC|i&}t|d@dI}t|d@dJ}
t!|dD|idEddC|i'd@dK|_(t!|dD|idEddC|i'd@dL|_)t||iddCd|_*t||iddCd|_+t|d@dMdC|i,|_-|i.dNt/dOdPdQddRt0dSt1|i.dNt/dOdPdQddSt2|	i.dNt3dTt4dOdPdQdP|ii.dNt3dOdPdQdPdRt0dSt5|i.dNt3dOdPdQd|ii.dNt3dOdPdQdPdRt0dSt1|
i.dNt3dRt0dSt5dOdUdQdV|i i.dNt3dRt0dSt5dOdUdQdW|i#i.dNt/dTt6|i$i.dNt7dTt4|i.dNt8dSt5dOdPdQdP|i.dNt3dTt4dOdPdQdP|
i.dNt3dTt4dOdPdQdP|i(i.dNt3dTt4dOdP|i)i.dNt3dTt4dOdPdQd|i*i.dNt3dSt5dOdPdQdP|i+i.dNt3dSt5dTt4dOdPdQdP|i-i.dNt3dSt5dOdPdQdP|S(xNR?RaRiRbiRjR`itRthand2R%iR$i
REthighlightthicknessitwraps<Double-Button-1>cSsdS(tbreak((te((s0/usr/local/lib/python2.5/idlelib/configDialog.pyt<lambda>ss<B1-Motion>cSsdS(R((R((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRss#you can click hereRs
R	s#to choose itemstdefRt tfuncR
s(param):s
  s"""string"""Rs

  var0 = s'string's

  var1 = s
'selected'Rs

  var2 = s'found'Rs

  var3 = tlistRt(Rs)

s error Rscursor |s
 tshellRR R"s<ButtonPress-1>cSs|iiii|S((twidgettwinfo_toplevelthighlightTargetR(teventtelem((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRststateRBsSet Custom HighlightingsChoose Colour for :RDRftvaluet
Foregroundt
BackgroundsSave as New Custom ThemesSelect a Highlighting Themes	Select : sa Built-in Themesa Custom ThemesDelete Custom ThemeRHRIiRJRKRLRqiii(scourieriR(s#you can click herescomment(s
snormal(s#to choose itemsscomment(s
snormal(Rskeyword(Rsnormal(sfuncs
definition(s(param):snormal(s
  snormal(s"""string"""sstring(s

  var0 = snormal(s'string'sstring(s

  var1 = snormal(s
'selected'shilite(s

  var2 = snormal(s'found'shit(s

  var3 = snormal(slistsbuiltin(Rsnormal(sNonesbuiltin(s)

snormal(s error serror(Rsnormal(scursor |R(s
 snormal(Rsconsole(Rsnormal(sstdoutsstdout(Rsnormal(sstderrsstderr(s
snormal(9RrtbuiltinThemetcustomThemeRttfgHilitetcolourRvtthemeIsBuiltinRR7R|RNR}tTextRR1tNONEttextHighlightSampleRtinserttENDR-tkeysttag_bindRtDISABLEDtframeColourSetR~ROt	GetColourRRtoptMenuHighlightTargettRadiobuttontSetColourSampleBindingtradioFgtradioBgRtSaveAsNewThemetSetThemeTypetradioThemeBuiltintradioThemeCustomtoptMenuThemeBuiltintoptMenuThemeCustomtDeleteCustomThemetbuttonDeleteCustomThemeRXRZR]R^RR\RRtERYR[(R<RtframeCustomt
frameThemeRBttextAndTagsttxTatelementt	frameFgBgtlabelCustomTitletbuttonSetColourtbuttonSaveCustomThemetlabelThemeTitletlabelTypeTitle((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRUs									(""+$(+"""%%+%cCst||_t||_t||_t||_t||_|iidd}t	|dddt
}t	|dddt
}t	|}t|dd}t|dd}t|}t|d	t
}t|d
tdt|_|iid|i|id
|ii|id
|ii|iid|i|iid|it|ddd
|idt|_t|ddd
|i}	t|dd}
t|dd}t|d|iddd
|idd|_t|d|iddd
|idd|_t ||idd
d|_"t ||idd
d|_#t|ddd
|i$|_%|i&dt'ddddd t(d!t)|i&dt'ddddd!t*|i&dt+d"t,dddd|	i&dt-d!t.dddd|ii&dt-d!t.dddd|i&dt'ddddd t(d!t)|i/dd#d|i0dd#d|i1d$dd%dd&dd't,|ii1d$dd%dd't2|i1d$dd%dd't3|i1d$dd%dd't4|
i&dt+d"t,dddd|i&dt+d"t,dddd|ii&dt+d"t,dd|ii&dt+d"t,dddd|i"i&dt+d!t.dddd|i#i&dt+d!t.d"t,dddd|i%i&dt+d!t.dddd|S((NR@RaRiRbRBsSet Custom Key BindingssAction - Key(s)RlRERds<ButtonRelease-1>RDRetxscrollcommandsGet New Keys for SelectionRsSave as New Custom Key SetsSelect a Key Sets	Select : RfRisa Built-in Key Setisa Custom Key SetsDelete Custom Key SetRHRIiRJRKRLRqtweighttrowtcolumnt
columnspantsticky(5Rrt
bindingTargettbuiltinKeyst
customKeysRttkeysAreBuiltint
keyBindingR7R|RNR}R~Rt
HORIZONTALRR1tlistBindingsRtKeyBindingSelectedRRtxviewRROt
GetNewKeysRt
buttonNewKeystSaveAsNewKeySetRtSetKeysTypetradioKeysBuiltintradioKeysCustomRRtoptMenuKeysBuiltintoptMenuKeysCustomtDeleteCustomKeystbuttonDeleteCustomKeysRXRZR]R^RR\RR[RtcolumnconfiguretrowconfiguretgridtNSEWtNStEW(R<RRtframeKeySetstframeTargetRtlabelTargetTitlet
scrollTargetYt
scrollTargetXtbuttonSaveCustomKeystlabelKeysTitleR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRVsp	("""%("""%%+%cCsit||_t||_t||_t||_t||_t||_t||_	t||_
|iidd}t
|dddt}t
|dddt}t
|dddt}t
|dddt}t
|dddt}t
|dddt}t|dd}t|dd}	t|d	|id
dd|idd
}
t|d	|id
dd|idd}t|dd}t|dd}
t|d	|id
dd|idd}t|d	|id
dd|idd}t|ddd}t|dd}t|d|idd}t|dd}t|d|idd}t|ddd}t|d|idd}t|dd}t|d	|id
ddd}t|d	|id
d dd!}t|d	|id
d"dd#}t
|}t
|}t|dd$}t|}t|d%d&d'td(t|_|id|ii|iid)|i|iid*|it|dd+d,tdd-d|i|_t|dd.dd-d|i |_!t|dd/d,tdd-d|i"|_#|i$d0t%d1d&d2d&d3t&|i$d0t%d1d&d2d&d3t&|i$d0t%d1d&d2d&d3t&|i$d0t%d1d&d2d&d3t&|i$d0t%d1d&d2d&d3t&|i$d0t%d1d&d2d&d4t'd3t(|i$d0t%d5t)d1d&d2d&|	i$d0t*d5t)d1d&d2d&|i$d0t+d5t)d1d&d2d&|
i$d0t+d5t)d1d&d2d&|i$d0t%d5t)d1d&d2d&|
i$d0t*d5t)d1d&d2d&|i$d0t+d5t)d1d&d2d&|i$d0t+d5t)d1d&d2d&|i$d0t*d5t)d1d&d2d&|i$d0t+d5t,d1d6d2d&|i$d0t+d5t,d2d&|i$d0t+d5t,d1d6d2d&|i$d0t+d5t,d2d&|i$d0t*d5t)d1d&d2d&|i$d0t+d5t,d1d6d2d&|i$d0t*d5t)d1d&d2d&|i$d0t+d5t,d2d&|i$d0t+d5t,d2d&|i$d0t+d5t,d2d&|i$d0t+d1d&d2d&d3t-|i$d0t%d1d&d2d&d4t'd3t(|i$d0t%d5t)|i$d0t+d5t)d3t-|ii$d0t*d5t,d4t'd3t(|ii$d0t%d5t)d2d&|i!i$d0t%d5t)|i#i$d0t%d5t)d2d&|S(7NRARaRiRbRBsStartup Preferencess
At StartupRfRiRDsOpen Edit WindowisOpen Shell WindowsAutosave PreferencesAt Start of Run (F5)  sPrompt to Saves	No PromptsInitial Window Sizes  (in characters)tWidthttextvariableR%itHeightsParagraph reformats width (in characters)sDefault Source EncodingtlocalesLocale-definedsutf-8sUTF-8tnoneRsAdditional Help Sources:R$iRERdRes<ButtonRelease-1>tEditRitAddtRemoveRHRIRJRLRKRqi
(.RrtwinWidtht	winHeightt	paraWidthRwtstartupEdittautoSavetencodingRttuserHelpBrowserthelpBrowserR7R|RNR}R~RRtEntryRRR1tlistHelpRRRRtHelpSourceSelectedRORtHelpListItemEdittbuttonHelpListEdittHelpListItemAddtbuttonHelpListAddtHelpListItemRemovetbuttonHelpListRemoveRXR\RR]R^RRZRYRR(R<RtframeRunt	frameSavetframeWinSizet
frameParaSizet
frameEncodingt	frameHelpt
labelRunTitletlabelRunChoiceTitletradioStartupEdittradioStartupShelltlabelSaveTitletlabelRunSaveTitletradioSaveAskt
radioSaveAutotlabelWinSizeTitletlabelWinWidthTitlet
entryWinWidthtlabelWinHeightTitletentryWinHeighttlabelParaWidthTitletentryParaWidthtlabelEncodingTitletradioEncLocaletradioEncUTF8tradioEncNonet
frameHelpListtframeHelpListButtonstlabelHelpListTitletscrollHelpList((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRW7s
		
	"""""("""""""""""""""(%cCs|iid|i|iid|i|iid|i|iid|i|i	id|i
|iid|i|i
id|i|iid|i|iid|i|iid|i|iid|i|iid|i|iid|i|iid|i|iid|i|iid|i |i!id|i"|i#id|i$|i%id|i&dS(Ntw('Rsttrace_variabletVarChanged_fontSizeRvtVarChanged_fontNameRutVarChanged_fontBoldRxtVarChanged_spaceNumRtVarChanged_colourRtVarChanged_builtinThemeRtVarChanged_customThemeRtVarChanged_themeIsBuiltinRtVarChanged_highlightTargetRtVarChanged_keyBindingRtVarChanged_builtinKeysRtVarChanged_customKeysRtVarChanged_keysAreBuiltinRtVarChanged_winWidthRtVarChanged_winHeightR
tVarChanged_paraWidthRtVarChanged_startupEditRtVarChanged_autoSaveRtVarChanged_encoding(R<((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR:s&cGs)|ii}|iddd|dS(NtmaintEditorWindows	font-size(RstgettAddChangedItem(R<tparamsR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR;scGs)|ii}|iddd|dS(NRNRORj(RvRPRQ(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR<scGs)|ii}|iddd|dS(NRNROs	font-bold(RuRPRQ(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR=scGs)|ii}|iddd|dS(NRNtIndents
num-spaces(RxRPRQ(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR>scGs|idS(N(tOnNewColourSet(R<RR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR?scGs3|ii}|iddd||idS(NRNtThemetname(RRPRQtPaintThemeSample(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR@scGsD|ii}|djo$|iddd||indS(Ns- no custom themes -RNRURV(RRPRQRW(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRAs
cGsH|ii}|iddd||o|in|idS(NRNRUtdefault(RRPRQR@RA(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRBs
cGs|idS(N(tSetHighlightTarget(R<RR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRCscGs|ii}|ii}|iitid}ti|o|id|||n0ti	|}|d}|id|||dS(NiRt_cfgBindingst
extensions(
RRPRRtANCHORtsplitRt
IsCoreBindingRQtGetExtnNameForEvent(R<RRRtkeySetRtextNametextKeybindSection((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRDs
cGs6|ii}|iddd||i|dS(NRNR@RV(RRPRQtLoadKeysList(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyREscGsG|ii}|djo'|iddd||i|ndS(Ns- no custom keys -RNR@RV(RRPRQRc(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRFs
cGsH|ii}|iddd||o|in|idS(NRNR@RX(RRPRQRERF(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRGs
cGs)|ii}|iddd|dS(NRNROR%(RRPRQ(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRHscGs)|ii}|iddd|dS(NRNROR$(RRPRQ(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRIscGs)|ii}|iddd|dS(NRNtFormatParagrapht	paragraph(R
RPRQ(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRJscGs)|ii}|iddd|dS(NRNRAseditor-on-startup(RRPRQ(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRKscGs)|ii}|iddd|dS(NRNRAtautosave(RRPRQ(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRLscGs)|ii}|iddd|dS(NRNROR(RRPRQ(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRMscCs1hhd<hd<hd<hd<|_dS(NRNt	highlightRR[(tchangedItems(R<((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR.scCsQt|}|i|i|ph|i||<n||i|||<dS(N(tstrRhthas_key(R<ttypetsectiontitemR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRQ'scCshhd<hd<hd<hd<}x|iD]}tid|}xh|D]`}h|||<ti|i|}x3|D]+}ti|i||||||<qWqVWq7W|S(NRNRgRR[RX(RRtGetSectionListt
defaultCfgt
GetOptionListtGet(R<tdItemst
configTypetsectionsRltoptionstoption((s0/usr/local/lib/python2.5/idlelib/configDialog.pytGetDefaultItems-s*
1cCs|iio=|iidt|iidt|iidtnM|iidt|iidt|iidt|iidtdS(NR(	RRPRRtNORMALRRRR(R<((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR9scCs|iio=|iidt|iidt|iidtnM|iidt|iidt|iidt|iidtdS(NR(	RRPRRRxRRRR(R<((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRDscCs|iit}|ii|}|id}|iio|ii}n|ii}ti	}||i
dijo@|i
d|}x,|iD]}||i||<qWn|i}t
|d||i}	|	o|iioYdd}
|i|
}|p(|ii||ii|dSq`|i|n|ii||ii||d|	|ii||ii||ii|	n!|ii||ii|dS(NiRsGet New Keyss4Your changes will be saved as a new Custom Key Set. s/Enter a name for your new Custom Key Set below.s - (RtindexR\RPR]RRRRtGetCurrentKeySetRhRtvaluesRtresulttGetNewKeysNamet
select_sett
select_anchortCreateNewKeySettdeleteRRR(R<t	listIndextbindingtbindNametcurrentKeySetNametcurrentBindingst
keySetChangesRtcurrentKeySequencestnewKeystmessaget	newKeySet((s0/usr/local/lib/python2.5/idlelib/configDialog.pyROs@
cCs>tiddtidd}t|d||i}|S(NtuserRRXsNew Custom Key Set(RRnRR|(R<Rt	usedNamesR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR}ss
	cCs+|id}|o|i|ndS(NsNew Key Set Name:(R}R(R<tnewKeysName((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRzscCs|iidtdS(NR(RRRx(R<R((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRsc
Cs9|iio|ii}n|ii}ti|}h}x>|iD]0}|dd!}ti||}|||<qTW||i	dijo:|i	d|}x&|iD]}||||<qWn|i
||tidd}	|	i|i
i|	||iid|idS(NiiRRi(RRPRRRtGetCoreKeysRRtjoinRht
SaveNewKeySetRntsortRtSetMenuRR(
R<t
newKeySetNametprevKeySetNametprevKeysRRt	eventNameRRt
customKeyList((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRs*



c	CsPd}d}|iiod}|iit}nti|}|i}|i|iidt	x|D]}t
i||}|dd!}||idijo;||id|ijo|id||}qn|ii
t	|d|qwW|o4|ii||ii||ii|ndS(NiiiiRs - (RtcurselectionRyR\Rt	GetKeySetRRRRRRRhRtseeR~R(	R<t
keySetNametreselectRRR`t	bindNamesRtkey((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRcs*

cCsH|ii}tiddd|d|pdSntidi||idi|o|id|=ntidi	ti
dd}|i|p*|ii
dt|ii|dn|ii||d	|iitid
idd|iitid
idd
|i|idS(NsDelete Key SetsAre you sure you wish sto delete the key set %r ?R6RRRs- no custom keys -iRNR@RXRV(RRPttkMessageBoxtaskyesnoRtuserCfgtremove_sectionRhRjtSaveRnRRRRRRRRRoRqRRGR(R<RtitemList((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRs&

##
cCsK|ii}tiddd|fd|pdSntidi||idi|o|id|=ntidi	ti
dd}|i|p*|ii
dt|ii|dn|ii||d	|iitid
idd|iitid
idd
|i|idS(NsDelete ThemesAre you sure you wish sto delete the theme %r ?R6RgRRs- no custom themes -iRNRURXRV(RRPRRRRRRhRjRRnRRRRRRRRRoRqRRGR(R<t	themeNameR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRs&

##
cCs|ii}|iid}tid|dd|d|\}}|oz||jom|iioIdd}|i|}|pdSq|i||i	i
|q|i	i
|ndS(NtbgR6R=sPick new colour for : tinitialcolors2Your changes will be saved as a new Custom Theme. s-Enter a name for your new Custom Theme below.(RRPRtcgetttkColorChoosertaskcolorRtGetNewThemeNametCreateNewThemeRR(R<ttargett
prevColourt	rgbTuplettcolourStringRtnewTheme((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRs
cCs|ii}|iid||iio
d}nd}|i|iid}|ii|h||<|i	i}|d|}|i
d|||dS(NRt
foregroundt
backgroundit-Rg(RRPRRRR-RRt
tag_configRRQ(R<t	newColourtplanet
sampleElementtthemetthemeElement((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRTs
cCs>tiddtidd}t|d||i}|S(NRRgRXsNew Custom Theme(RRnRR|(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRs
	cCs+|id}|o|i|ndS(NsNew Theme Name:(RR(R<tnewThemeName((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRscCs|iiod}|ii}nd}|ii}ti||}||idijo:|id|}x&|iD]}||||<qWn|i||ti	dd}|i
|ii|||ii
d|idS(NRXRRgi(RRPRRRtGetThemeDictRhRtSaveNewThemeRnRRRRR(R<Rt	themeTypeRRtthemeChangesRtcustomThemeList((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRs"

cCs6|iit}|ii|i|idS(N(RRPR\RvRtlowerR(R<RRj((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR,scCsa|ii}|iio
ti}n
ti}|iid|iid|d|dS(NtsizeRtfamily(	RvRPRuRytBOLDRxR{RRs(R<RRvt
fontWeight((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR1s
	cCs|iidjo:|iidt|iidt|iidn7|iidt|iidt|iid|i	dS(NRRi(
RRPRRRRRRRxtSetColourSample(R<((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRY:scGs|idS(N(R(R<targs((s0/usr/local/lib/python2.5/idlelib/configDialog.pyREscCsf|i|iid}|iio
d}nd}|ii||}|iid|dS(NiRRR(R-RRPRRttag_cgetRR(R<ttagRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRHs
cCs@|iio|ii}n|ii}x|iiD]}|i|d}ti||}|djo ti|ddd|d<n||idijoi|id|}|i	|do||d|d	<n|i	|d
o||d
|d<qn|i
i||qBW|idS(NiRR	tfgBgRRRgs-foregroundRs-background(
RRPRRR-RRtGetHighlightRhRjRRR(R<RtelementTitleRtcolourst	themeDict((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRWPs$
	cCs|idS(N(tSetHelpListButtonStates(R<R((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRescCs|iidjo*|iidt|iidtna|iio*|iidt|iidtn'|iidt|iidtdS(NiR(RRRRRRRRx(R<((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRhscCsjt|di}|oC|ii|d|df|iit|d|in|idS(NsNew Help Sourceii(	RR|tuserHelpListtappendRRRtUpdateUserHelpChangedItemsR(R<t
helpSource((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRtscCs|iit}|i|}t|dd|dd|di}|p
||jodSn||i|<|ii||ii||d|i|i	dS(NsEdit Help SourcetmenuItemitfilePathi(
RRyR\RRR|RRRR(R<t	itemIndexRt
newHelpSource((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR|s


cCsD|iit}|i|=|ii||i|idS(N(RRyR\RRRR(R<R((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRs


c	Cssh|idd<x[tdt|idD]=}|iddt|ti|i|dd dq.WdS(s<Clear and rebuild the HelpFiles section in self.changedItemsRNt	HelpFilesiit;N(RhtrangetlenRRQRiRR(R<tnum((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRs
c
CsXtti|}|ix!|D]}|iit|q&Wtiddddd}|i	}|i
i|g}|D]}||i	q~}||joC|i|}|ii
||ii||ii|ntiddddd}	|iid|	|iitiddddddd|idS(NRNRORjRXR`s	font-sizeRt7t8t9R!R#t13t14t16t18t20t22s	font-boldiRktbool(RRRs10s11s12RRRRRR(RRytfamiliesRRRRRt	GetOptionRRvRRyRR~RRRRuR(
R<tfontsRjtconfiguredFonttlc_configuredFontt_[1]tstlc_fontstcurrentFontIndexRs((s0/usr/local/lib/python2.5/idlelib/configDialog.pytLoadFontCfgs,
	'
		
cCs5tiddddddd}|ii|dS(NRNRSs
num-spacesRXiRktint(RRRxR(R<Rx((s0/usr/local/lib/python2.5/idlelib/configDialog.pyt
LoadTabCfgsc	Cs|iitidddddddti}|iiotidd}|i|ii	||tidd}|i|p'|i
id	t|i
id
q=|ii	||dnctidd}|i|ii	||tidd}|i|ii	||d|i|ii}|i|i|ii	||d|i|idS(NRNRURXRkRiRgRRs- no custom themes -i(RRRRtCurrentThemeRPRnRRRRRRRRRR-Rt$_ConfigDialog__ThemeNameIndexCompareRRWRY(R<t
currentOptionRt
themeNames((s0/usr/local/lib/python2.5/idlelib/configDialog.pytLoadThemeCfgs2





cCs^|i|d|i|djodSn0|i|d|i|djodSndSdS(Niii(R-(R<tatb((s0/usr/local/lib/python2.5/idlelib/configDialog.pyt__ThemeNameIndexCompares
##c	Csd|iitidddddddti}|iiotidd}|i|ii	||tidd}|i|p'|i
id	t|i
id
q=|ii	||dnctidd}|i|ii	||tidd}|i|ii	||d|iti}|i|dS(NRNR@RXRkRiRRRs- no custom keys -i(RRRRtCurrentKeysRPRnRRRRRRRRRRc(R<RRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyt
LoadKeyCfgs,




c	Cs |iitiddddddd|iitiddddd	dd|iitidd
d|iitidd
d|iitidd
d|iitidd
dddti	|_
x(|i
D]}|iit
|d	qW|idS(NRNRAseditor-on-startupRXiRkRRfiROR%R$RdReRR(RRRRRRRR
RtGetAllExtraHelpSourcesListRRRRR(R<thelpItem((s0/usr/local/lib/python2.5/idlelib/configDialog.pytLoadGeneralCfgs
cCs6|i|i|i|i|idS(s
        load configuration from default and user config files and populate
        the widgets on the config dialog pages.
        N(RRRRR(R<((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR9s




cCsntidi|ptidi|nx8|iD]*}||}tidi|||q<WdS(s
        save a newly created core key set.
        keySetName - string, the name of the new key set
        keySet - dictionary containing the new key set
        RN(RRthas_sectiontadd_sectionRt	SetOption(R<RR`RR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR s

cCsntidi|ptidi|nx8|iD]*}||}tidi|||q<WdS(s
        save a newly created theme.
        themeName - string, the name of the new theme
        theme - dictionary containing the new theme
        RgN(RRRRRR(R<RRRR((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR,s

cCssti|i||o?ti|i|||joti|i||SqYnti|i|||S(N(RRot
has_optionRqRtRemoveOptionR(R<RsRlRmR((s0/usr/local/lib/python2.5/idlelib/configDialog.pytSetUserValue8s cCs&tidix|iiD]}t}x|i|iD]}|djotididt}nxW|i||iD]>}|i|||}|i||||o
t}qqWqAW|oti|iq!q!Wx%ddgD]}ti|iqW|i	dS(s3Save configuration changes to the user config file.RNRRRgN(
RRRRhRtFalseRtTrueRR.(R<RstcfgTypeHasChangesRlRmR((s0/usr/local/lib/python2.5/idlelib/configDialog.pytSaveAllChangedConfigs@s(


cCs1|iii}x|D]}|iqWdS(N(R6t
instance_dictRtRemoveKeybindings(R<twinInstancestinstance((s0/usr/local/lib/python2.5/idlelib/configDialog.pytDeactivateCurrentConfigUscCsY|iii}x@|D]8}|i|i|i|i|iqWdS(s'Dynamically apply configuration changesN(R6RRtResetColorizert	ResetFonttset_notabs_indentwidthtApplyKeybindingstreset_help_menu_entries(R<R
R((s0/usr/local/lib/python2.5/idlelib/configDialog.pytActivateConfigChanges\s



cCs|idS(N(tdestroy(R<((s0/usr/local/lib/python2.5/idlelib/configDialog.pyR5fscCs|i|idS(N(RGR(R<((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRFis
cCs"|i|i|idS(N(RR
R(R<((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRGms

cCsdS(N((R<((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRCrsN(Lt__name__t
__module__R(R/RTRURVRWR:R;R<R=R>R?R@RARBRCRDRERFRGRHRIRJRKRLRMR.RQRwRRRR}RRRRcRRRRTRRRRRRRYRRRWRRRRRRRRRRRRR9RRRR
RRR5RFRGRC(((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRs	&		?	[	E	s																										$																						
					!										
			t__main__RBtDialogRDcCs
ttdS(tSettings(Rtroot(((s0/usr/local/lib/python2.5/idlelib/configDialog.pyRys(t__doc__tTkinterRRRyRtcopyt
configHandlerRtdynOptionMenuWidgetRttabpageRtkeybindingDialogRtconfigSectionNameDialogRtconfigHelpSourceEditRR'RRtTkRRORXRtmainloop(((s0/usr/local/lib/python2.5/idlelib/configDialog.pys<module>s(
$b
		

Man Man