Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
idlelib.configDialog.ConfigDialog Class Reference
Inheritance diagram for idlelib.configDialog.ConfigDialog:
Inheritance graph
[legend]
Collaboration diagram for idlelib.configDialog.ConfigDialog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def CreateWidgets
def CreatePageFontTab
def CreatePageHighlight
def CreatePageKeys
def CreatePageGeneral
def AttachVarCallbacks
def VarChanged_fontSize
def VarChanged_fontName
def VarChanged_fontBold
def VarChanged_spaceNum
def VarChanged_colour
def VarChanged_builtinTheme
def VarChanged_customTheme
def VarChanged_themeIsBuiltin
def VarChanged_highlightTarget
def VarChanged_keyBinding
def VarChanged_builtinKeys
def VarChanged_customKeys
def VarChanged_keysAreBuiltin
def VarChanged_winWidth
def VarChanged_winHeight
def VarChanged_paraWidth
def VarChanged_startupEdit
def VarChanged_autoSave
def VarChanged_encoding
def ResetChangedItems
def AddChangedItem
def GetDefaultItems
def SetThemeType
def SetKeysType
def GetNewKeys
def GetNewKeysName
def SaveAsNewKeySet
def KeyBindingSelected
def CreateNewKeySet
def LoadKeysList
def DeleteCustomKeys
def DeleteCustomTheme
def GetColour
def OnNewColourSet
def GetNewThemeName
def SaveAsNewTheme
def CreateNewTheme
def OnListFontButtonRelease
def SetFontSample
def SetHighlightTarget
def SetColourSampleBinding
def SetColourSample
def PaintThemeSample
def HelpSourceSelected
def SetHelpListButtonStates
def HelpListItemAdd
def HelpListItemEdit
def HelpListItemRemove
def UpdateUserHelpChangedItems
def LoadFontCfg
def LoadTabCfg
def LoadThemeCfg
def LoadKeyCfg
def LoadGeneralCfg
def LoadConfigs
def SaveNewKeySet
def SaveNewTheme
def SetUserValue
def SaveAllChangedConfigs
def DeactivateCurrentConfig
def ActivateConfigChanges
def Cancel
def Ok
def Apply
def Help
def destroy
def deletecommand
def tk_strictMotif
def tk_bisque
def tk_setPalette
def tk_menuBar
def wait_variable
def wait_window
def wait_visibility
def setvar
def getvar
def getboolean
def focus_set
def focus_force
def focus_get
def focus_displayof
def focus_lastfor
def tk_focusFollowsMouse
def tk_focusNext
def tk_focusPrev
def after
def after_idle
def after_cancel
def bell
def clipboard_get
def clipboard_clear
def clipboard_append
def grab_current
def grab_release
def grab_set
def grab_set_global
def grab_status
def option_add
def option_clear
def option_get
def option_readfile
def selection_clear
def selection_get
def selection_handle
def selection_own
def selection_own_get
def send
def lower
def tkraise
def colormodel
def winfo_atom
def winfo_atomname
def winfo_cells
def winfo_children
def winfo_class
def winfo_colormapfull
def winfo_containing
def winfo_depth
def winfo_exists
def winfo_fpixels
def winfo_geometry
def winfo_height
def winfo_id
def winfo_interps
def winfo_ismapped
def winfo_manager
def winfo_name
def winfo_parent
def winfo_pathname
def winfo_pixels
def winfo_pointerx
def winfo_pointerxy
def winfo_pointery
def winfo_reqheight
def winfo_reqwidth
def winfo_rgb
def winfo_rootx
def winfo_rooty
def winfo_screen
def winfo_screencells
def winfo_screendepth
def winfo_screenheight
def winfo_screenmmheight
def winfo_screenmmwidth
def winfo_screenvisual
def winfo_screenwidth
def winfo_server
def winfo_toplevel
def winfo_viewable
def winfo_visual
def winfo_visualid
def winfo_visualsavailable
def winfo_vrootheight
def winfo_vrootwidth
def winfo_vrootx
def winfo_vrooty
def winfo_width
def winfo_x
def winfo_y
def update
def update_idletasks
def bindtags
def bind
def unbind
def bind_all
def unbind_all
def bind_class
def unbind_class
def mainloop
def quit
def nametowidget
def configure
def cget
def __setitem__
def keys
def __str__
def pack_propagate
def pack_slaves
def place_slaves
def grid_bbox
def grid_columnconfigure
def grid_location
def grid_propagate
def grid_rowconfigure
def grid_size
def grid_slaves
def event_add
def event_delete
def event_generate
def event_info
def image_names
def image_types
def wm_aspect
def wm_attributes
def wm_client
def wm_colormapwindows
def wm_command
def wm_deiconify
def wm_focusmodel
def wm_frame
def wm_geometry
def wm_grid
def wm_group
def wm_iconbitmap
def wm_iconify
def wm_iconmask
def wm_iconname
def wm_iconposition
def wm_iconwindow
def wm_maxsize
def wm_minsize
def wm_overrideredirect
def wm_positionfrom
def wm_protocol
def wm_resizable
def wm_sizefrom
def wm_state
def wm_title
def wm_transient
def wm_withdraw

Public Attributes

 themeElements
 parent
 tabPages
 buttonHelp
 buttonOk
 buttonApply
 buttonCancel
 fontSize
 fontBold
 fontName
 spaceNum
 editFont
 listFontName
 widget creation body frame
 optMenuFontSize
 labelFontSample
 scaleSpaceNum
 builtinTheme
 customTheme
 fgHilite
 colour
 themeIsBuiltin
 highlightTarget
 textHighlightSample
 widget creation body frame
 frameColourSet
 optMenuHighlightTarget
 radioFg
 radioBg
 radioThemeBuiltin
 radioThemeCustom
 optMenuThemeBuiltin
 optMenuThemeCustom
 buttonDeleteCustomTheme
 bindingTarget
 builtinKeys
 customKeys
 keysAreBuiltin
 keyBinding
 listBindings
 widget creation body frame
 buttonNewKeys
 radioKeysBuiltin
 radioKeysCustom
 optMenuKeysBuiltin
 optMenuKeysCustom
 buttonDeleteCustomKeys
 winWidth
 winHeight
 paraWidth
 startupEdit
 autoSave
 encoding
 userHelpBrowser
 helpBrowser
 listHelp
 buttonHelpListEdit
 buttonHelpListAdd
 buttonHelpListRemove
 changedItems
 userHelpList
 master
 tk
 children
 widgetName

Static Public Attributes

 waitvar = wait_variable
 getint = int
 getdouble = float
 focus = focus_set
 lift = tkraise
 register = _register
 config = configure
 propagate = pack_propagate
 slaves = pack_slaves
 bbox = grid_bbox
 columnconfigure = grid_columnconfigure
 rowconfigure = grid_rowconfigure
 size = grid_size
 aspect = wm_aspect
 client = wm_client
 colormapwindows = wm_colormapwindows
 command = wm_command
 deiconify = wm_deiconify
 focusmodel = wm_focusmodel
 frame = wm_frame
 geometry = wm_geometry
 grid = wm_grid
 group = wm_group
 iconbitmap = wm_iconbitmap
 iconify = wm_iconify
 iconmask = wm_iconmask
 iconname = wm_iconname
 iconposition = wm_iconposition
 iconwindow = wm_iconwindow
 maxsize = wm_maxsize
 minsize = wm_minsize
 overrideredirect = wm_overrideredirect
 positionfrom = wm_positionfrom
 protocol = wm_protocol
 resizable = wm_resizable
 sizefrom = wm_sizefrom
 state = wm_state
 title = wm_title
 transient = wm_transient
 withdraw = wm_withdraw

Detailed Description

Definition at line 26 of file configDialog.py.


Constructor & Destructor Documentation

def idlelib.configDialog.ConfigDialog.__init__ (   self,
  parent,
  title 
)

Definition at line 28 of file configDialog.py.

00028 
00029     def __init__(self,parent,title):
00030         Toplevel.__init__(self, parent)
00031         self.wm_withdraw()
00032 
00033         self.configure(borderwidth=5)
00034         self.title('IDLE Preferences')
00035         self.geometry("+%d+%d" % (parent.winfo_rootx()+20,
00036                 parent.winfo_rooty()+30))
00037         #Theme Elements. Each theme element key is its display name.
00038         #The first value of the tuple is the sample area tag name.
00039         #The second value is the display name list sort index.
00040         self.themeElements={'Normal Text':('normal','00'),
00041             'Python Keywords':('keyword','01'),
00042             'Python Definitions':('definition','02'),
00043             'Python Builtins':('builtin', '03'),
00044             'Python Comments':('comment','04'),
00045             'Python Strings':('string','05'),
00046             'Selected Text':('hilite','06'),
00047             'Found Text':('hit','07'),
00048             'Cursor':('cursor','08'),
00049             'Error Text':('error','09'),
00050             'Shell Normal Text':('console','10'),
00051             'Shell Stdout Text':('stdout','11'),
00052             'Shell Stderr Text':('stderr','12'),
00053             }
00054         self.ResetChangedItems() #load initial values in changed items dict
00055         self.CreateWidgets()
00056         self.resizable(height=FALSE,width=FALSE)
00057         self.transient(parent)
00058         self.grab_set()
00059         self.protocol("WM_DELETE_WINDOW", self.Cancel)
00060         self.parent = parent
00061         self.tabPages.focus_set()
00062         #key bindings for this dialog
00063         #self.bind('<Escape>',self.Cancel) #dismiss dialog, no save
00064         #self.bind('<Alt-a>',self.Apply) #apply changes, save
00065         #self.bind('<F1>',self.Help) #context help
00066         self.LoadConfigs()
00067         self.AttachVarCallbacks() #avoid callbacks during LoadConfigs
00068 
00069         self.wm_deiconify()
00070         self.wait_window()

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

def tkinter.Misc.__setitem__ (   self,
  key,
  value 
) [inherited]

Reimplemented in tkinter.ttk.Combobox.

Definition at line 1199 of file __init__.py.

01199 
01200     def __setitem__(self, key, value):
        self.configure({key: value})

Here is the call graph for this function:

def tkinter.Misc.__str__ (   self) [inherited]
Return the window path name of this widget.

Reimplemented in tkinter.scrolledtext.ScrolledText.

Definition at line 1205 of file __init__.py.

01205 
01206     def __str__(self):
01207         """Return the window path name of this widget."""
        return self._w

Definition at line 1112 of file configDialog.py.

01112 
01113     def ActivateConfigChanges(self):
01114         "Dynamically apply configuration changes"
01115         winInstances = self.parent.instance_dict.keys()
01116         for instance in winInstances:
01117             instance.ResetColorizer()
01118             instance.ResetFont()
01119             instance.set_notabs_indentwidth()
01120             instance.ApplyKeybindings()
01121             instance.reset_help_menu_entries()

Here is the caller graph for this function:

def idlelib.configDialog.ConfigDialog.AddChangedItem (   self,
  type,
  section,
  item,
  value 
)

Definition at line 552 of file configDialog.py.

00552 
00553     def AddChangedItem(self,type,section,item,value):
00554         value=str(value) #make sure we use a string
00555         if section not in self.changedItems[type]:
00556             self.changedItems[type][section]={}
00557         self.changedItems[type][section][item]=value

Here is the caller graph for this function:

def tkinter.Misc.after (   self,
  ms,
  func = None,
  args 
) [inherited]
Call function once after given time.

MS specifies the time in milliseconds. FUNC gives the
function which shall be called. Additional parameters
are given as parameters to the function call.  Return
identifier to cancel scheduling with after_cancel.

Definition at line 474 of file __init__.py.

00474 
00475     def after(self, ms, func=None, *args):
00476         """Call function once after given time.
00477 
00478         MS specifies the time in milliseconds. FUNC gives the
00479         function which shall be called. Additional parameters
00480         are given as parameters to the function call.  Return
00481         identifier to cancel scheduling with after_cancel."""
00482         if not func:
00483             # I'd rather use time.sleep(ms*0.001)
00484             self.tk.call('after', ms)
00485         else:
00486             def callit():
00487                 try:
00488                     func(*args)
00489                 finally:
00490                     try:
00491                         self.deletecommand(name)
00492                     except TclError:
00493                         pass
00494             name = self._register(callit)
            return self.tk.call('after', ms, name)

Here is the call graph for this function:

Here is the caller graph for this function:

def tkinter.Misc.after_cancel (   self,
  id 
) [inherited]
Cancel scheduling of function identified with ID.

Identifier returned by after or after_idle must be
given as first parameter.

Definition at line 502 of file __init__.py.

00502 
00503     def after_cancel(self, id):
00504         """Cancel scheduling of function identified with ID.
00505 
00506         Identifier returned by after or after_idle must be
00507         given as first parameter."""
00508         try:
00509             data = self.tk.call('after', 'info', id)
00510             # In Tk 8.3, splitlist returns: (script, type)
00511             # In Tk 8.4, splitlist may return (script, type) or (script,)
00512             script = self.tk.splitlist(data)[0]
00513             self.deletecommand(script)
00514         except TclError:
00515             pass
        self.tk.call('after', 'cancel', id)

Here is the call graph for this function:

Here is the caller graph for this function:

def tkinter.Misc.after_idle (   self,
  func,
  args 
) [inherited]
Call FUNC once if the Tcl main loop has no event to
process.

Return an identifier to cancel the scheduling with
after_cancel.

Definition at line 495 of file __init__.py.

00495 
00496     def after_idle(self, func, *args):
00497         """Call FUNC once if the Tcl main loop has no event to
00498         process.
00499 
00500         Return an identifier to cancel the scheduling with
00501         after_cancel."""
        return self.after('idle', func, *args)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1129 of file configDialog.py.

01129 
01130     def Apply(self):
01131         self.DeactivateCurrentConfig()
01132         self.SaveAllChangedConfigs()
01133         self.ActivateConfigChanges()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 427 of file configDialog.py.

00427 
00428     def AttachVarCallbacks(self):
00429         self.fontSize.trace_variable('w',self.VarChanged_fontSize)
00430         self.fontName.trace_variable('w',self.VarChanged_fontName)
00431         self.fontBold.trace_variable('w',self.VarChanged_fontBold)
00432         self.spaceNum.trace_variable('w',self.VarChanged_spaceNum)
00433         self.colour.trace_variable('w',self.VarChanged_colour)
00434         self.builtinTheme.trace_variable('w',self.VarChanged_builtinTheme)
00435         self.customTheme.trace_variable('w',self.VarChanged_customTheme)
00436         self.themeIsBuiltin.trace_variable('w',self.VarChanged_themeIsBuiltin)
00437         self.highlightTarget.trace_variable('w',self.VarChanged_highlightTarget)
00438         self.keyBinding.trace_variable('w',self.VarChanged_keyBinding)
00439         self.builtinKeys.trace_variable('w',self.VarChanged_builtinKeys)
00440         self.customKeys.trace_variable('w',self.VarChanged_customKeys)
00441         self.keysAreBuiltin.trace_variable('w',self.VarChanged_keysAreBuiltin)
00442         self.winWidth.trace_variable('w',self.VarChanged_winWidth)
00443         self.winHeight.trace_variable('w',self.VarChanged_winHeight)
00444         self.paraWidth.trace_variable('w',self.VarChanged_paraWidth)
00445         self.startupEdit.trace_variable('w',self.VarChanged_startupEdit)
00446         self.autoSave.trace_variable('w',self.VarChanged_autoSave)
00447         self.encoding.trace_variable('w',self.VarChanged_encoding)

Here is the call graph for this function:

def tkinter.Misc.bell (   self,
  displayof = 0 
) [inherited]
Ring a display's bell.

Definition at line 516 of file __init__.py.

00516 
00517     def bell(self, displayof=0):
00518         """Ring a display's bell."""
00519         self.tk.call(('bell',) + self._displayof(displayof))

Here is the call graph for this function:

Here is the caller graph for this function:

def tkinter.Misc.bind (   self,
  sequence = None,
  func = None,
  add = None 
) [inherited]
Bind to this widget at event SEQUENCE a call to function FUNC.

SEQUENCE is a string of concatenated event
patterns. An event pattern is of the form
<MODIFIER-MODIFIER-TYPE-DETAIL> where MODIFIER is one
of Control, Mod2, M2, Shift, Mod3, M3, Lock, Mod4, M4,
Button1, B1, Mod5, M5 Button2, B2, Meta, M, Button3,
B3, Alt, Button4, B4, Double, Button5, B5 Triple,
Mod1, M1. TYPE is one of Activate, Enter, Map,
ButtonPress, Button, Expose, Motion, ButtonRelease
FocusIn, MouseWheel, Circulate, FocusOut, Property,
Colormap, Gravity Reparent, Configure, KeyPress, Key,
Unmap, Deactivate, KeyRelease Visibility, Destroy,
Leave and DETAIL is the button number for ButtonPress,
ButtonRelease and DETAIL is the Keysym for KeyPress and
KeyRelease. Examples are
<Control-Button-1> for pressing Control and mouse button 1 or
<Alt-A> for pressing A and the Alt key (KeyPress can be omitted).
An event pattern can also be a virtual event of the form
<<AString>> where AString can be arbitrary. This
event can be generated by event_generate.
If events are concatenated they must appear shortly
after each other.

FUNC will be called if the event sequence occurs with an
instance of Event as argument. If the return value of FUNC is
"break" no further bound function is invoked.

An additional boolean parameter ADD specifies whether FUNC will
be called additionally to the other bound function or whether
it will replace the previous function.

Bind will return an identifier to allow deletion of the bound function with
unbind without memory leak.

If FUNC or SEQUENCE is omitted the bound function or list
of bound events are returned.

Definition at line 938 of file __init__.py.

00938 
00939     def bind(self, sequence=None, func=None, add=None):
00940         """Bind to this widget at event SEQUENCE a call to function FUNC.
00941 
00942         SEQUENCE is a string of concatenated event
00943         patterns. An event pattern is of the form
00944         <MODIFIER-MODIFIER-TYPE-DETAIL> where MODIFIER is one
00945         of Control, Mod2, M2, Shift, Mod3, M3, Lock, Mod4, M4,
00946         Button1, B1, Mod5, M5 Button2, B2, Meta, M, Button3,
00947         B3, Alt, Button4, B4, Double, Button5, B5 Triple,
00948         Mod1, M1. TYPE is one of Activate, Enter, Map,
00949         ButtonPress, Button, Expose, Motion, ButtonRelease
00950         FocusIn, MouseWheel, Circulate, FocusOut, Property,
00951         Colormap, Gravity Reparent, Configure, KeyPress, Key,
00952         Unmap, Deactivate, KeyRelease Visibility, Destroy,
00953         Leave and DETAIL is the button number for ButtonPress,
00954         ButtonRelease and DETAIL is the Keysym for KeyPress and
00955         KeyRelease. Examples are
00956         <Control-Button-1> for pressing Control and mouse button 1 or
00957         <Alt-A> for pressing A and the Alt key (KeyPress can be omitted).
00958         An event pattern can also be a virtual event of the form
00959         <<AString>> where AString can be arbitrary. This
00960         event can be generated by event_generate.
00961         If events are concatenated they must appear shortly
00962         after each other.
00963 
00964         FUNC will be called if the event sequence occurs with an
00965         instance of Event as argument. If the return value of FUNC is
00966         "break" no further bound function is invoked.
00967 
00968         An additional boolean parameter ADD specifies whether FUNC will
00969         be called additionally to the other bound function or whether
00970         it will replace the previous function.
00971 
00972         Bind will return an identifier to allow deletion of the bound function with
00973         unbind without memory leak.
00974 
00975         If FUNC or SEQUENCE is omitted the bound function or list
00976         of bound events are returned."""
00977 
        return self._bind(('bind', self._w), sequence, func, add)

Here is the call graph for this function:

Here is the caller graph for this function:

def tkinter.Misc.bind_all (   self,
  sequence = None,
  func = None,
  add = None 
) [inherited]
Bind to all widgets at an event SEQUENCE a call to function FUNC.
An additional boolean parameter ADD specifies whether FUNC will
be called additionally to the other bound function or whether
it will replace the previous function. See bind for the return value.

Definition at line 984 of file __init__.py.

00984 
00985     def bind_all(self, sequence=None, func=None, add=None):
00986         """Bind to all widgets at an event SEQUENCE a call to function FUNC.
00987         An additional boolean parameter ADD specifies whether FUNC will
00988         be called additionally to the other bound function or whether
00989         it will replace the previous function. See bind for the return value."""
        return self._bind(('bind', 'all'), sequence, func, add, 0)

Here is the call graph for this function:

def tkinter.Misc.bind_class (   self,
  className,
  sequence = None,
  func = None,
  add = None 
) [inherited]
Bind to widgets with bindtag CLASSNAME at event
SEQUENCE a call of function FUNC. An additional
boolean parameter ADD specifies whether FUNC will be
called additionally to the other bound function or
whether it will replace the previous function. See bind for
the return value.

Definition at line 993 of file __init__.py.

00993 
00994     def bind_class(self, className, sequence=None, func=None, add=None):
00995 
00996         """Bind to widgets with bindtag CLASSNAME at event
00997         SEQUENCE a call of function FUNC. An additional
00998         boolean parameter ADD specifies whether FUNC will be
00999         called additionally to the other bound function or
01000         whether it will replace the previous function. See bind for
01001         the return value."""
01002 
        return self._bind(('bind', className), sequence, func, add, 0)

Here is the call graph for this function:

def tkinter.Misc.bindtags (   self,
  tagList = None 
) [inherited]
Set or get the list of bindtags for this widget.

With no argument return the list of all bindtags associated with
this widget. With a list of strings as argument the bindtags are
set to this list. The bindtags determine in which order events are
processed (see bind).

Definition at line 909 of file __init__.py.

00909 
00910     def bindtags(self, tagList=None):
00911         """Set or get the list of bindtags for this widget.
00912 
00913         With no argument return the list of all bindtags associated with
00914         this widget. With a list of strings as argument the bindtags are
00915         set to this list. The bindtags determine in which order events are
00916         processed (see bind)."""
00917         if tagList is None:
00918             return self.tk.splitlist(
00919                 self.tk.call('bindtags', self._w))
00920         else:
            self.tk.call('bindtags', self._w, tagList)

Definition at line 1122 of file configDialog.py.

01122 
01123     def Cancel(self):
01124         self.destroy()

Here is the call graph for this function:

Here is the caller graph for this function:

def tkinter.Misc.cget (   self,
  key 
) [inherited]
Return the resource value for a KEY given as string.

Definition at line 1195 of file __init__.py.

01195 
01196     def cget(self, key):
01197         """Return the resource value for a KEY given as string."""
        return self.tk.call(self._w, 'cget', '-' + key)

Here is the caller graph for this function:

def tkinter.Misc.clipboard_append (   self,
  string,
  kw 
) [inherited]
Append STRING to the Tk clipboard.

A widget specified at the optional displayof keyword
argument specifies the target display. The clipboard
can be retrieved with selection_get.

Definition at line 544 of file __init__.py.

00544 
00545     def clipboard_append(self, string, **kw):
00546         """Append STRING to the Tk clipboard.
00547 
00548         A widget specified at the optional displayof keyword
00549         argument specifies the target display. The clipboard
00550         can be retrieved with selection_get."""
00551         if 'displayof' not in kw: kw['displayof'] = self._w
00552         self.tk.call(('clipboard', 'append') + self._options(kw)
              + ('--', string))

Here is the call graph for this function:

def tkinter.Misc.clipboard_clear (   self,
  kw 
) [inherited]
Clear the data in the Tk clipboard.

A widget specified for the optional displayof keyword
argument specifies the target display.

Definition at line 537 of file __init__.py.

00537 
00538     def clipboard_clear(self, **kw):
00539         """Clear the data in the Tk clipboard.
00540 
00541         A widget specified for the optional displayof keyword
00542         argument specifies the target display."""
00543         if 'displayof' not in kw: kw['displayof'] = self._w
        self.tk.call(('clipboard', 'clear') + self._options(kw))

Here is the call graph for this function:

def tkinter.Misc.clipboard_get (   self,
  kw 
) [inherited]
Retrieve data from the clipboard on window's display.

The window keyword defaults to the root window of the Tkinter
application.

The type keyword specifies the form in which the data is
to be returned and should be an atom name such as STRING
or FILE_NAME.  Type defaults to STRING.

This command is equivalent to:

selection_get(CLIPBOARD)

Definition at line 521 of file __init__.py.

00521 
00522     def clipboard_get(self, **kw):
00523         """Retrieve data from the clipboard on window's display.
00524 
00525         The window keyword defaults to the root window of the Tkinter
00526         application.
00527 
00528         The type keyword specifies the form in which the data is
00529         to be returned and should be an atom name such as STRING
00530         or FILE_NAME.  Type defaults to STRING.
00531 
00532         This command is equivalent to:
00533 
00534         selection_get(CLIPBOARD)
00535         """
00536         return self.tk.call(('clipboard', 'get') + self._options(kw))

Here is the call graph for this function:

def tkinter.Misc.colormodel (   self,
  value = None 
) [inherited]
Useless. Not implemented in Tk.

Definition at line 662 of file __init__.py.

00662 
00663     def colormodel(self, value=None):
00664         """Useless. Not implemented in Tk."""
        return self.tk.call('tk', 'colormodel', self._w, value)
def tkinter.Misc.configure (   self,
  cnf = None,
  kw 
) [inherited]
Configure resources of a widget.

The values for resources are specified as keyword
arguments. To get an overview about
the allowed keyword arguments call the method keys.

Reimplemented in tkinter.ttk.Scale, and tkinter.ttk.Combobox.

Definition at line 1186 of file __init__.py.

01186 
01187     def configure(self, cnf=None, **kw):
01188         """Configure resources of a widget.
01189 
01190         The values for resources are specified as keyword
01191         arguments. To get an overview about
01192         the allowed keyword arguments call the method keys.
01193         """
        return self._configure('configure', cnf, kw)

Here is the call graph for this function:

Here is the caller graph for this function:

def idlelib.configDialog.ConfigDialog.CreateNewKeySet (   self,
  newKeySetName 
)

Definition at line 643 of file configDialog.py.

00643 
00644     def CreateNewKeySet(self,newKeySetName):
00645         #creates new custom key set based on the previously active key set,
00646         #and makes the new key set active
00647         if self.keysAreBuiltin.get():
00648             prevKeySetName=self.builtinKeys.get()
00649         else:
00650             prevKeySetName=self.customKeys.get()
00651         prevKeys=idleConf.GetCoreKeys(prevKeySetName)
00652         newKeys={}
00653         for event in prevKeys: #add key set to changed items
00654             eventName=event[2:-2] #trim off the angle brackets
00655             binding=' '.join(prevKeys[event])
00656             newKeys[eventName]=binding
00657         #handle any unsaved changes to prev key set
00658         if prevKeySetName in self.changedItems['keys']:
00659             keySetChanges=self.changedItems['keys'][prevKeySetName]
00660             for event in keySetChanges:
00661                 newKeys[event]=keySetChanges[event]
00662         #save the new theme
00663         self.SaveNewKeySet(newKeySetName,newKeys)
00664         #change gui over to the new key set
00665         customKeyList=idleConf.GetSectionList('user','keys')
00666         customKeyList.sort()
00667         self.optMenuKeysCustom.SetMenu(customKeyList,newKeySetName)
00668         self.keysAreBuiltin.set(0)
00669         self.SetKeysType()

Here is the call graph for this function:

Here is the caller graph for this function:

def idlelib.configDialog.ConfigDialog.CreateNewTheme (   self,
  newThemeName 
)

Definition at line 789 of file configDialog.py.

00789 
00790     def CreateNewTheme(self,newThemeName):
00791         #creates new custom theme based on the previously active theme,
00792         #and makes the new theme active
00793         if self.themeIsBuiltin.get():
00794             themeType='default'
00795             themeName=self.builtinTheme.get()
00796         else:
00797             themeType='user'
00798             themeName=self.customTheme.get()
00799         newTheme=idleConf.GetThemeDict(themeType,themeName)
00800         #apply any of the old theme's unsaved changes to the new theme
00801         if themeName in self.changedItems['highlight']:
00802             themeChanges=self.changedItems['highlight'][themeName]
00803             for element in themeChanges:
00804                 newTheme[element]=themeChanges[element]
00805         #save the new theme
00806         self.SaveNewTheme(newThemeName,newTheme)
00807         #change gui over to the new theme
00808         customThemeList=idleConf.GetSectionList('user','highlight')
00809         customThemeList.sort()
00810         self.optMenuThemeCustom.SetMenu(customThemeList,newThemeName)
00811         self.themeIsBuiltin.set(0)
00812         self.SetThemeType()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 109 of file configDialog.py.

00109 
00110     def CreatePageFontTab(self):
00111         #tkVars
00112         self.fontSize=StringVar(self)
00113         self.fontBold=BooleanVar(self)
00114         self.fontName=StringVar(self)
00115         self.spaceNum=IntVar(self)
00116         self.editFont=tkFont.Font(self,('courier',10,'normal'))
00117         ##widget creation
00118         #body frame
00119         frame=self.tabPages.pages['Fonts/Tabs'].frame
00120         #body section frames
00121         frameFont=LabelFrame(frame,borderwidth=2,relief=GROOVE,
00122                              text=' Base Editor Font ')
00123         frameIndent=LabelFrame(frame,borderwidth=2,relief=GROOVE,
00124                                text=' Indentation Width ')
00125         #frameFont
00126         frameFontName=Frame(frameFont)
00127         frameFontParam=Frame(frameFont)
00128         labelFontNameTitle=Label(frameFontName,justify=LEFT,
00129                 text='Font Face :')
00130         self.listFontName=Listbox(frameFontName,height=5,takefocus=FALSE,
00131                 exportselection=FALSE)
00132         self.listFontName.bind('<ButtonRelease-1>',self.OnListFontButtonRelease)
00133         scrollFont=Scrollbar(frameFontName)
00134         scrollFont.config(command=self.listFontName.yview)
00135         self.listFontName.config(yscrollcommand=scrollFont.set)
00136         labelFontSizeTitle=Label(frameFontParam,text='Size :')
00137         self.optMenuFontSize=DynOptionMenu(frameFontParam,self.fontSize,None,
00138             command=self.SetFontSample)
00139         checkFontBold=Checkbutton(frameFontParam,variable=self.fontBold,
00140             onvalue=1,offvalue=0,text='Bold',command=self.SetFontSample)
00141         frameFontSample=Frame(frameFont,relief=SOLID,borderwidth=1)
00142         self.labelFontSample=Label(frameFontSample,
00143                 text='AaBbCcDdEe\nFfGgHhIiJjK\n1234567890\n#:+=(){}[]',
00144                 justify=LEFT,font=self.editFont)
00145         #frameIndent
00146         frameIndentSize=Frame(frameIndent)
00147         labelSpaceNumTitle=Label(frameIndentSize, justify=LEFT,
00148                                  text='Python Standard: 4 Spaces!')
00149         self.scaleSpaceNum=Scale(frameIndentSize, variable=self.spaceNum,
00150                                  orient='horizontal',
00151                                  tickinterval=2, from_=2, to=16)
00152         #widget packing
00153         #body
00154         frameFont.pack(side=LEFT,padx=5,pady=5,expand=TRUE,fill=BOTH)
00155         frameIndent.pack(side=LEFT,padx=5,pady=5,fill=Y)
00156         #frameFont
00157         frameFontName.pack(side=TOP,padx=5,pady=5,fill=X)
00158         frameFontParam.pack(side=TOP,padx=5,pady=5,fill=X)
00159         labelFontNameTitle.pack(side=TOP,anchor=W)
00160         self.listFontName.pack(side=LEFT,expand=TRUE,fill=X)
00161         scrollFont.pack(side=LEFT,fill=Y)
00162         labelFontSizeTitle.pack(side=LEFT,anchor=W)
00163         self.optMenuFontSize.pack(side=LEFT,anchor=W)
00164         checkFontBold.pack(side=LEFT,anchor=W,padx=20)
00165         frameFontSample.pack(side=TOP,padx=5,pady=5,expand=TRUE,fill=BOTH)
00166         self.labelFontSample.pack(expand=TRUE,fill=BOTH)
00167         #frameIndent
00168         frameIndentSize.pack(side=TOP,fill=X)
00169         labelSpaceNumTitle.pack(side=TOP,anchor=W,padx=5)
00170         self.scaleSpaceNum.pack(side=TOP,padx=5,fill=X)
00171         return frame

Definition at line 330 of file configDialog.py.

00330 
00331     def CreatePageGeneral(self):
00332         #tkVars
00333         self.winWidth=StringVar(self)
00334         self.winHeight=StringVar(self)
00335         self.paraWidth=StringVar(self)
00336         self.startupEdit=IntVar(self)
00337         self.autoSave=IntVar(self)
00338         self.encoding=StringVar(self)
00339         self.userHelpBrowser=BooleanVar(self)
00340         self.helpBrowser=StringVar(self)
00341         #widget creation
00342         #body
00343         frame=self.tabPages.pages['General'].frame
00344         #body section frames
00345         frameRun=LabelFrame(frame,borderwidth=2,relief=GROOVE,
00346                             text=' Startup Preferences ')
00347         frameSave=LabelFrame(frame,borderwidth=2,relief=GROOVE,
00348                              text=' Autosave Preferences ')
00349         frameWinSize=Frame(frame,borderwidth=2,relief=GROOVE)
00350         frameParaSize=Frame(frame,borderwidth=2,relief=GROOVE)
00351         frameHelp=LabelFrame(frame,borderwidth=2,relief=GROOVE,
00352                              text=' Additional Help Sources ')
00353         #frameRun
00354         labelRunChoiceTitle=Label(frameRun,text='At Startup')
00355         radioStartupEdit=Radiobutton(frameRun,variable=self.startupEdit,
00356             value=1,command=self.SetKeysType,text="Open Edit Window")
00357         radioStartupShell=Radiobutton(frameRun,variable=self.startupEdit,
00358             value=0,command=self.SetKeysType,text='Open Shell Window')
00359         #frameSave
00360         labelRunSaveTitle=Label(frameSave,text='At Start of Run (F5)  ')
00361         radioSaveAsk=Radiobutton(frameSave,variable=self.autoSave,
00362             value=0,command=self.SetKeysType,text="Prompt to Save")
00363         radioSaveAuto=Radiobutton(frameSave,variable=self.autoSave,
00364             value=1,command=self.SetKeysType,text='No Prompt')
00365         #frameWinSize
00366         labelWinSizeTitle=Label(frameWinSize,text='Initial Window Size'+
00367                 '  (in characters)')
00368         labelWinWidthTitle=Label(frameWinSize,text='Width')
00369         entryWinWidth=Entry(frameWinSize,textvariable=self.winWidth,
00370                 width=3)
00371         labelWinHeightTitle=Label(frameWinSize,text='Height')
00372         entryWinHeight=Entry(frameWinSize,textvariable=self.winHeight,
00373                 width=3)
00374         #paragraphFormatWidth
00375         labelParaWidthTitle=Label(frameParaSize,text='Paragraph reformat'+
00376                 ' width (in characters)')
00377         entryParaWidth=Entry(frameParaSize,textvariable=self.paraWidth,
00378                 width=3)
00379         #frameHelp
00380         frameHelpList=Frame(frameHelp)
00381         frameHelpListButtons=Frame(frameHelpList)
00382         scrollHelpList=Scrollbar(frameHelpList)
00383         self.listHelp=Listbox(frameHelpList,height=5,takefocus=FALSE,
00384                 exportselection=FALSE)
00385         scrollHelpList.config(command=self.listHelp.yview)
00386         self.listHelp.config(yscrollcommand=scrollHelpList.set)
00387         self.listHelp.bind('<ButtonRelease-1>',self.HelpSourceSelected)
00388         self.buttonHelpListEdit=Button(frameHelpListButtons,text='Edit',
00389                 state=DISABLED,width=8,command=self.HelpListItemEdit)
00390         self.buttonHelpListAdd=Button(frameHelpListButtons,text='Add',
00391                 width=8,command=self.HelpListItemAdd)
00392         self.buttonHelpListRemove=Button(frameHelpListButtons,text='Remove',
00393                 state=DISABLED,width=8,command=self.HelpListItemRemove)
00394         #widget packing
00395         #body
00396         frameRun.pack(side=TOP,padx=5,pady=5,fill=X)
00397         frameSave.pack(side=TOP,padx=5,pady=5,fill=X)
00398         frameWinSize.pack(side=TOP,padx=5,pady=5,fill=X)
00399         frameParaSize.pack(side=TOP,padx=5,pady=5,fill=X)
00400         frameHelp.pack(side=TOP,padx=5,pady=5,expand=TRUE,fill=BOTH)
00401         #frameRun
00402         labelRunChoiceTitle.pack(side=LEFT,anchor=W,padx=5,pady=5)
00403         radioStartupShell.pack(side=RIGHT,anchor=W,padx=5,pady=5)
00404         radioStartupEdit.pack(side=RIGHT,anchor=W,padx=5,pady=5)
00405         #frameSave
00406         labelRunSaveTitle.pack(side=LEFT,anchor=W,padx=5,pady=5)
00407         radioSaveAuto.pack(side=RIGHT,anchor=W,padx=5,pady=5)
00408         radioSaveAsk.pack(side=RIGHT,anchor=W,padx=5,pady=5)
00409         #frameWinSize
00410         labelWinSizeTitle.pack(side=LEFT,anchor=W,padx=5,pady=5)
00411         entryWinHeight.pack(side=RIGHT,anchor=E,padx=10,pady=5)
00412         labelWinHeightTitle.pack(side=RIGHT,anchor=E,pady=5)
00413         entryWinWidth.pack(side=RIGHT,anchor=E,padx=10,pady=5)
00414         labelWinWidthTitle.pack(side=RIGHT,anchor=E,pady=5)
00415         #paragraphFormatWidth
00416         labelParaWidthTitle.pack(side=LEFT,anchor=W,padx=5,pady=5)
00417         entryParaWidth.pack(side=RIGHT,anchor=E,padx=10,pady=5)
00418         #frameHelp
00419         frameHelpListButtons.pack(side=RIGHT,padx=5,pady=5,fill=Y)
00420         frameHelpList.pack(side=TOP,padx=5,pady=5,expand=TRUE,fill=BOTH)
00421         scrollHelpList.pack(side=RIGHT,anchor=W,fill=Y)
00422         self.listHelp.pack(side=LEFT,anchor=E,expand=TRUE,fill=BOTH)
00423         self.buttonHelpListEdit.pack(side=TOP,anchor=W,pady=5)
00424         self.buttonHelpListAdd.pack(side=TOP,anchor=W)
00425         self.buttonHelpListRemove.pack(side=TOP,anchor=W,pady=5)
00426         return frame

Definition at line 172 of file configDialog.py.

00172 
00173     def CreatePageHighlight(self):
00174         self.builtinTheme=StringVar(self)
00175         self.customTheme=StringVar(self)
00176         self.fgHilite=BooleanVar(self)
00177         self.colour=StringVar(self)
00178         self.fontName=StringVar(self)
00179         self.themeIsBuiltin=BooleanVar(self)
00180         self.highlightTarget=StringVar(self)
00181         ##widget creation
00182         #body frame
00183         frame=self.tabPages.pages['Highlighting'].frame
00184         #body section frames
00185         frameCustom=LabelFrame(frame,borderwidth=2,relief=GROOVE,
00186                                text=' Custom Highlighting ')
00187         frameTheme=LabelFrame(frame,borderwidth=2,relief=GROOVE,
00188                               text=' Highlighting Theme ')
00189         #frameCustom
00190         self.textHighlightSample=Text(frameCustom,relief=SOLID,borderwidth=1,
00191             font=('courier',12,''),cursor='hand2',width=21,height=10,
00192             takefocus=FALSE,highlightthickness=0,wrap=NONE)
00193         text=self.textHighlightSample
00194         text.bind('<Double-Button-1>',lambda e: 'break')
00195         text.bind('<B1-Motion>',lambda e: 'break')
00196         textAndTags=(('#you can click here','comment'),('\n','normal'),
00197             ('#to choose items','comment'),('\n','normal'),('def','keyword'),
00198             (' ','normal'),('func','definition'),('(param):','normal'),
00199             ('\n  ','normal'),('"""string"""','string'),('\n  var0 = ','normal'),
00200             ("'string'",'string'),('\n  var1 = ','normal'),("'selected'",'hilite'),
00201             ('\n  var2 = ','normal'),("'found'",'hit'),
00202             ('\n  var3 = ','normal'),('list', 'builtin'), ('(','normal'),
00203             ('None', 'builtin'),(')\n\n','normal'),
00204             (' error ','error'),(' ','normal'),('cursor |','cursor'),
00205             ('\n ','normal'),('shell','console'),(' ','normal'),('stdout','stdout'),
00206             (' ','normal'),('stderr','stderr'),('\n','normal'))
00207         for txTa in textAndTags:
00208             text.insert(END,txTa[0],txTa[1])
00209         for element in self.themeElements:
00210             text.tag_bind(self.themeElements[element][0],'<ButtonPress-1>',
00211                 lambda event,elem=element: event.widget.winfo_toplevel()
00212                 .highlightTarget.set(elem))
00213         text.config(state=DISABLED)
00214         self.frameColourSet=Frame(frameCustom,relief=SOLID,borderwidth=1)
00215         frameFgBg=Frame(frameCustom)
00216         buttonSetColour=Button(self.frameColourSet,text='Choose Colour for :',
00217             command=self.GetColour,highlightthickness=0)
00218         self.optMenuHighlightTarget=DynOptionMenu(self.frameColourSet,
00219             self.highlightTarget,None,highlightthickness=0)#,command=self.SetHighlightTargetBinding
00220         self.radioFg=Radiobutton(frameFgBg,variable=self.fgHilite,
00221             value=1,text='Foreground',command=self.SetColourSampleBinding)
00222         self.radioBg=Radiobutton(frameFgBg,variable=self.fgHilite,
00223             value=0,text='Background',command=self.SetColourSampleBinding)
00224         self.fgHilite.set(1)
00225         buttonSaveCustomTheme=Button(frameCustom,
00226             text='Save as New Custom Theme',command=self.SaveAsNewTheme)
00227         #frameTheme
00228         labelTypeTitle=Label(frameTheme,text='Select : ')
00229         self.radioThemeBuiltin=Radiobutton(frameTheme,variable=self.themeIsBuiltin,
00230             value=1,command=self.SetThemeType,text='a Built-in Theme')
00231         self.radioThemeCustom=Radiobutton(frameTheme,variable=self.themeIsBuiltin,
00232             value=0,command=self.SetThemeType,text='a Custom Theme')
00233         self.optMenuThemeBuiltin=DynOptionMenu(frameTheme,
00234             self.builtinTheme,None,command=None)
00235         self.optMenuThemeCustom=DynOptionMenu(frameTheme,
00236             self.customTheme,None,command=None)
00237         self.buttonDeleteCustomTheme=Button(frameTheme,text='Delete Custom Theme',
00238                 command=self.DeleteCustomTheme)
00239         ##widget packing
00240         #body
00241         frameCustom.pack(side=LEFT,padx=5,pady=5,expand=TRUE,fill=BOTH)
00242         frameTheme.pack(side=LEFT,padx=5,pady=5,fill=Y)
00243         #frameCustom
00244         self.frameColourSet.pack(side=TOP,padx=5,pady=5,expand=TRUE,fill=X)
00245         frameFgBg.pack(side=TOP,padx=5,pady=0)
00246         self.textHighlightSample.pack(side=TOP,padx=5,pady=5,expand=TRUE,
00247             fill=BOTH)
00248         buttonSetColour.pack(side=TOP,expand=TRUE,fill=X,padx=8,pady=4)
00249         self.optMenuHighlightTarget.pack(side=TOP,expand=TRUE,fill=X,padx=8,pady=3)
00250         self.radioFg.pack(side=LEFT,anchor=E)
00251         self.radioBg.pack(side=RIGHT,anchor=W)
00252         buttonSaveCustomTheme.pack(side=BOTTOM,fill=X,padx=5,pady=5)
00253         #frameTheme
00254         labelTypeTitle.pack(side=TOP,anchor=W,padx=5,pady=5)
00255         self.radioThemeBuiltin.pack(side=TOP,anchor=W,padx=5)
00256         self.radioThemeCustom.pack(side=TOP,anchor=W,padx=5,pady=2)
00257         self.optMenuThemeBuiltin.pack(side=TOP,fill=X,padx=5,pady=5)
00258         self.optMenuThemeCustom.pack(side=TOP,fill=X,anchor=W,padx=5,pady=5)
00259         self.buttonDeleteCustomTheme.pack(side=TOP,fill=X,padx=5,pady=5)
00260         return frame

Definition at line 261 of file configDialog.py.

00261 
00262     def CreatePageKeys(self):
00263         #tkVars
00264         self.bindingTarget=StringVar(self)
00265         self.builtinKeys=StringVar(self)
00266         self.customKeys=StringVar(self)
00267         self.keysAreBuiltin=BooleanVar(self)
00268         self.keyBinding=StringVar(self)
00269         ##widget creation
00270         #body frame
00271         frame=self.tabPages.pages['Keys'].frame
00272         #body section frames
00273         frameCustom=LabelFrame(frame,borderwidth=2,relief=GROOVE,
00274                                text=' Custom Key Bindings ')
00275         frameKeySets=LabelFrame(frame,borderwidth=2,relief=GROOVE,
00276                            text=' Key Set ')
00277         #frameCustom
00278         frameTarget=Frame(frameCustom)
00279         labelTargetTitle=Label(frameTarget,text='Action - Key(s)')
00280         scrollTargetY=Scrollbar(frameTarget)
00281         scrollTargetX=Scrollbar(frameTarget,orient=HORIZONTAL)
00282         self.listBindings=Listbox(frameTarget,takefocus=FALSE,
00283                 exportselection=FALSE)
00284         self.listBindings.bind('<ButtonRelease-1>',self.KeyBindingSelected)
00285         scrollTargetY.config(command=self.listBindings.yview)
00286         scrollTargetX.config(command=self.listBindings.xview)
00287         self.listBindings.config(yscrollcommand=scrollTargetY.set)
00288         self.listBindings.config(xscrollcommand=scrollTargetX.set)
00289         self.buttonNewKeys=Button(frameCustom,text='Get New Keys for Selection',
00290             command=self.GetNewKeys,state=DISABLED)
00291         #frameKeySets
00292         frames = [Frame(frameKeySets, padx=2, pady=2, borderwidth=0)
00293                   for i in range(2)]
00294         self.radioKeysBuiltin=Radiobutton(frames[0],variable=self.keysAreBuiltin,
00295             value=1,command=self.SetKeysType,text='Use a Built-in Key Set')
00296         self.radioKeysCustom=Radiobutton(frames[0],variable=self.keysAreBuiltin,
00297             value=0,command=self.SetKeysType,text='Use a Custom Key Set')
00298         self.optMenuKeysBuiltin=DynOptionMenu(frames[0],
00299             self.builtinKeys,None,command=None)
00300         self.optMenuKeysCustom=DynOptionMenu(frames[0],
00301             self.customKeys,None,command=None)
00302         self.buttonDeleteCustomKeys=Button(frames[1],text='Delete Custom Key Set',
00303                 command=self.DeleteCustomKeys)
00304         buttonSaveCustomKeys=Button(frames[1],
00305                 text='Save as New Custom Key Set',command=self.SaveAsNewKeySet)
00306         ##widget packing
00307         #body
00308         frameCustom.pack(side=BOTTOM,padx=5,pady=5,expand=TRUE,fill=BOTH)
00309         frameKeySets.pack(side=BOTTOM,padx=5,pady=5,fill=BOTH)
00310         #frameCustom
00311         self.buttonNewKeys.pack(side=BOTTOM,fill=X,padx=5,pady=5)
00312         frameTarget.pack(side=LEFT,padx=5,pady=5,expand=TRUE,fill=BOTH)
00313         #frame target
00314         frameTarget.columnconfigure(0,weight=1)
00315         frameTarget.rowconfigure(1,weight=1)
00316         labelTargetTitle.grid(row=0,column=0,columnspan=2,sticky=W)
00317         self.listBindings.grid(row=1,column=0,sticky=NSEW)
00318         scrollTargetY.grid(row=1,column=1,sticky=NS)
00319         scrollTargetX.grid(row=2,column=0,sticky=EW)
00320         #frameKeySets
00321         self.radioKeysBuiltin.grid(row=0, column=0, sticky=W+NS)
00322         self.radioKeysCustom.grid(row=1, column=0, sticky=W+NS)
00323         self.optMenuKeysBuiltin.grid(row=0, column=1, sticky=NSEW)
00324         self.optMenuKeysCustom.grid(row=1, column=1, sticky=NSEW)
00325         self.buttonDeleteCustomKeys.pack(side=LEFT,fill=X,expand=True,padx=2)
00326         buttonSaveCustomKeys.pack(side=LEFT,fill=X,expand=True,padx=2)
00327         frames[0].pack(side=TOP, fill=BOTH, expand=True)
00328         frames[1].pack(side=TOP, fill=X, expand=True, pady=2)
00329         return frame

Definition at line 71 of file configDialog.py.

00071 
00072     def CreateWidgets(self):
00073         self.tabPages = TabbedPageSet(self,
00074                 page_names=['Fonts/Tabs','Highlighting','Keys','General'])
00075         frameActionButtons = Frame(self,pady=2)
00076         #action buttons
00077 
00078         if macosxSupport.runningAsOSXApp():
00079             # Surpress the padx and pady arguments when
00080             # running as IDLE.app, otherwise the text
00081             # on these buttons will not be readable.
00082             extraKwds={}
00083         else:
00084             extraKwds=dict(padx=6, pady=3)
00085 
00086         self.buttonHelp = Button(frameActionButtons,text='Help',
00087                 command=self.Help,takefocus=FALSE,
00088                 **extraKwds)
00089         self.buttonOk = Button(frameActionButtons,text='Ok',
00090                 command=self.Ok,takefocus=FALSE,
00091                 **extraKwds)
00092         self.buttonApply = Button(frameActionButtons,text='Apply',
00093                 command=self.Apply,takefocus=FALSE,
00094                 **extraKwds)
00095         self.buttonCancel = Button(frameActionButtons,text='Cancel',
00096                 command=self.Cancel,takefocus=FALSE,
00097                 **extraKwds)
00098         self.CreatePageFontTab()
00099         self.CreatePageHighlight()
00100         self.CreatePageKeys()
00101         self.CreatePageGeneral()
00102         self.buttonHelp.pack(side=RIGHT,padx=5)
00103         self.buttonOk.pack(side=LEFT,padx=5)
00104         self.buttonApply.pack(side=LEFT,padx=5)
00105         self.buttonCancel.pack(side=LEFT,padx=5)
00106         frameActionButtons.pack(side=BOTTOM)
00107         Frame(self, height=2, borderwidth=0).pack(side=BOTTOM)
00108         self.tabPages.pack(side=TOP,expand=TRUE,fill=BOTH)

Definition at line 1105 of file configDialog.py.

01105 
01106     def DeactivateCurrentConfig(self):
01107         #Before a config is saved, some cleanup of current
01108         #config must be done - remove the previous keybindings
01109         winInstances = self.parent.instance_dict.keys()
01110         for instance in winInstances:
01111             instance.RemoveKeybindings()

Here is the caller graph for this function:

def tkinter.Misc.deletecommand (   self,
  name 
) [inherited]
Internal function.

Delete the Tcl command provided in NAME.

Definition at line 345 of file __init__.py.

00345 
00346     def deletecommand(self, name):
00347         """Internal function.
00348 
00349         Delete the Tcl command provided in NAME."""
00350         #print '- Tkinter: deleted command', name
00351         self.tk.deletecommand(name)
00352         try:
00353             self._tclCommands.remove(name)
00354         except ValueError:
            pass

Here is the caller graph for this function:

Definition at line 693 of file configDialog.py.

00693 
00694     def DeleteCustomKeys(self):
00695         keySetName=self.customKeys.get()
00696         if not tkMessageBox.askyesno('Delete Key Set','Are you sure you wish '+
00697                                      'to delete the key set %r ?' % (keySetName),
00698                                      parent=self):
00699             return
00700         #remove key set from config
00701         idleConf.userCfg['keys'].remove_section(keySetName)
00702         if keySetName in self.changedItems['keys']:
00703             del(self.changedItems['keys'][keySetName])
00704         #write changes
00705         idleConf.userCfg['keys'].Save()
00706         #reload user key set list
00707         itemList=idleConf.GetSectionList('user','keys')
00708         itemList.sort()
00709         if not itemList:
00710             self.radioKeysCustom.config(state=DISABLED)
00711             self.optMenuKeysCustom.SetMenu(itemList,'- no custom keys -')
00712         else:
00713             self.optMenuKeysCustom.SetMenu(itemList,itemList[0])
00714         #revert to default key set
00715         self.keysAreBuiltin.set(idleConf.defaultCfg['main'].Get('Keys','default'))
00716         self.builtinKeys.set(idleConf.defaultCfg['main'].Get('Keys','name'))
00717         #user can't back out of these changes, they must be applied now
00718         self.Apply()
00719         self.SetKeysType()

Here is the call graph for this function:

Definition at line 720 of file configDialog.py.

00720 
00721     def DeleteCustomTheme(self):
00722         themeName=self.customTheme.get()
00723         if not tkMessageBox.askyesno('Delete Theme','Are you sure you wish '+
00724                                      'to delete the theme %r ?' % (themeName,),
00725                                      parent=self):
00726             return
00727         #remove theme from config
00728         idleConf.userCfg['highlight'].remove_section(themeName)
00729         if themeName in self.changedItems['highlight']:
00730             del(self.changedItems['highlight'][themeName])
00731         #write changes
00732         idleConf.userCfg['highlight'].Save()
00733         #reload user theme list
00734         itemList=idleConf.GetSectionList('user','highlight')
00735         itemList.sort()
00736         if not itemList:
00737             self.radioThemeCustom.config(state=DISABLED)
00738             self.optMenuThemeCustom.SetMenu(itemList,'- no custom themes -')
00739         else:
00740             self.optMenuThemeCustom.SetMenu(itemList,itemList[0])
00741         #revert to default theme
00742         self.themeIsBuiltin.set(idleConf.defaultCfg['main'].Get('Theme','default'))
00743         self.builtinTheme.set(idleConf.defaultCfg['main'].Get('Theme','name'))
00744         #user can't back out of these changes, they must be applied now
00745         self.Apply()
00746         self.SetThemeType()

Here is the call graph for this function:

def tkinter.BaseWidget.destroy (   self) [inherited]
Destroy this and all descendants widgets.

Reimplemented from tkinter.Misc.

Reimplemented in tkinter.OptionMenu, tkinter.ttk.OptionMenu, tkinter.ttk.LabeledScale, tkinter.tix.TixSubWidget, tkinter.simpledialog._QueryDialog, tkinter.simpledialog.Dialog, idlelib.WindowList.ListedToplevel, and tkinter.dialog.Dialog.

Definition at line 1961 of file __init__.py.

01961 
01962     def destroy(self):
01963         """Destroy this and all descendants widgets."""
01964         for c in list(self.children.values()): c.destroy()
01965         self.tk.call('destroy', self._w)
01966         if self._name in self.master.children:
01967             del self.master.children[self._name]
        Misc.destroy(self)

Here is the caller graph for this function:

def tkinter.Misc.event_add (   self,
  virtual,
  sequences 
) [inherited]
Bind a virtual event VIRTUAL (of the form <<Name>>)
to an event SEQUENCE such that the virtual event is triggered
whenever SEQUENCE occurs.

Definition at line 1348 of file __init__.py.

01348 
01349     def event_add(self, virtual, *sequences):
01350         """Bind a virtual event VIRTUAL (of the form <<Name>>)
01351         to an event SEQUENCE such that the virtual event is triggered
01352         whenever SEQUENCE occurs."""
01353         args = ('event', 'add', virtual) + sequences
01354         self.tk.call(args)

def tkinter.Misc.event_delete (   self,
  virtual,
  sequences 
) [inherited]
Unbind a virtual event VIRTUAL from SEQUENCE.

Definition at line 1355 of file __init__.py.

01355 
01356     def event_delete(self, virtual, *sequences):
01357         """Unbind a virtual event VIRTUAL from SEQUENCE."""
01358         args = ('event', 'delete', virtual) + sequences
01359         self.tk.call(args)

def tkinter.Misc.event_generate (   self,
  sequence,
  kw 
) [inherited]
Generate an event SEQUENCE. Additional
keyword arguments specify parameter of the event
(e.g. x, y, rootx, rooty).

Definition at line 1360 of file __init__.py.

01360 
01361     def event_generate(self, sequence, **kw):
01362         """Generate an event SEQUENCE. Additional
01363         keyword arguments specify parameter of the event
01364         (e.g. x, y, rootx, rooty)."""
01365         args = ('event', 'generate', self._w, sequence)
01366         for k, v in kw.items():
01367             args = args + ('-%s' % k, str(v))
01368         self.tk.call(args)

Here is the caller graph for this function:

def tkinter.Misc.event_info (   self,
  virtual = None 
) [inherited]
Return a list of all virtual events or the information
about the SEQUENCE bound to the virtual event VIRTUAL.

Definition at line 1369 of file __init__.py.

01369 
01370     def event_info(self, virtual=None):
01371         """Return a list of all virtual events or the information
01372         about the SEQUENCE bound to the virtual event VIRTUAL."""
01373         return self.tk.splitlist(
01374             self.tk.call('event', 'info', virtual))

def tkinter.Misc.focus_displayof (   self) [inherited]
Return the widget which has currently the focus on the
display where this widget is located.

Return None if the application does not have the focus.

Definition at line 439 of file __init__.py.

00439 
00440     def focus_displayof(self):
00441         """Return the widget which has currently the focus on the
00442         display where this widget is located.
00443 
00444         Return None if the application does not have the focus."""
00445         name = self.tk.call('focus', '-displayof', self._w)
00446         if name == 'none' or not name: return None
        return self._nametowidget(name)
def tkinter.Misc.focus_force (   self) [inherited]
Direct input focus to this widget even if the
application does not have the focus. Use with
caution!

Definition at line 424 of file __init__.py.

00424 
00425     def focus_force(self):
00426         """Direct input focus to this widget even if the
00427         application does not have the focus. Use with
00428         caution!"""
        self.tk.call('focus', '-force', self._w)
def tkinter.Misc.focus_get (   self) [inherited]
Return the widget which has currently the focus in the
application.

Use focus_displayof to allow working with several
displays. Return None if application does not have
the focus.

Definition at line 429 of file __init__.py.

00429 
00430     def focus_get(self):
00431         """Return the widget which has currently the focus in the
00432         application.
00433 
00434         Use focus_displayof to allow working with several
00435         displays. Return None if application does not have
00436         the focus."""
00437         name = self.tk.call('focus')
00438         if name == 'none' or not name: return None
        return self._nametowidget(name)
def tkinter.Misc.focus_lastfor (   self) [inherited]
Return the widget which would have the focus if top level
for this widget gets the focus from the window manager.

Definition at line 447 of file __init__.py.

00447 
00448     def focus_lastfor(self):
00449         """Return the widget which would have the focus if top level
00450         for this widget gets the focus from the window manager."""
00451         name = self.tk.call('focus', '-lastfor', self._w)
00452         if name == 'none' or not name: return None
        return self._nametowidget(name)
def tkinter.Misc.focus_set (   self) [inherited]
Direct input focus to this widget.

If the application currently does not have the focus
this widget will get the focus if the application gets
the focus through the window manager.

Definition at line 416 of file __init__.py.

00416 
00417     def focus_set(self):
00418         """Direct input focus to this widget.
00419 
00420         If the application currently does not have the focus
00421         this widget will get the focus if the application gets
00422         the focus through the window manager."""
        self.tk.call('focus', self._w)
def tkinter.Misc.getboolean (   self,
  s 
) [inherited]
Return a boolean value for Tcl boolean values true and false given as parameter.

Definition at line 413 of file __init__.py.

00413 
00414     def getboolean(self, s):
00415         """Return a boolean value for Tcl boolean values true and false given as parameter."""
        return self.tk.getboolean(s)

Here is the caller graph for this function:

Definition at line 747 of file configDialog.py.

00747 
00748     def GetColour(self):
00749         target=self.highlightTarget.get()
00750         prevColour=self.frameColourSet.cget('bg')
00751         rgbTuplet, colourString = tkColorChooser.askcolor(parent=self,
00752             title='Pick new colour for : '+target,initialcolor=prevColour)
00753         if colourString and (colourString!=prevColour):
00754             #user didn't cancel, and they chose a new colour
00755             if self.themeIsBuiltin.get(): #current theme is a built-in
00756                 message=('Your changes will be saved as a new Custom Theme. '+
00757                         'Enter a name for your new Custom Theme below.')
00758                 newTheme=self.GetNewThemeName(message)
00759                 if not newTheme: #user cancelled custom theme creation
00760                     return
00761                 else: #create new custom theme based on previously active theme
00762                     self.CreateNewTheme(newTheme)
00763                     self.colour.set(colourString)
00764             else: #current theme is user defined
00765                 self.colour.set(colourString)

Here is the call graph for this function:

Definition at line 558 of file configDialog.py.

00558 
00559     def GetDefaultItems(self):
00560         dItems={'main':{},'highlight':{},'keys':{},'extensions':{}}
00561         for configType in dItems:
00562             sections=idleConf.GetSectionList('default',configType)
00563             for section in sections:
00564                 dItems[configType][section]={}
00565                 options=idleConf.defaultCfg[configType].GetOptionList(section)
00566                 for option in options:
00567                     dItems[configType][section][option]=(
00568                             idleConf.defaultCfg[configType].Get(section,option))
00569         return dItems

Definition at line 592 of file configDialog.py.

00592 
00593     def GetNewKeys(self):
00594         listIndex=self.listBindings.index(ANCHOR)
00595         binding=self.listBindings.get(listIndex)
00596         bindName=binding.split()[0] #first part, up to first space
00597         if self.keysAreBuiltin.get():
00598             currentKeySetName=self.builtinKeys.get()
00599         else:
00600             currentKeySetName=self.customKeys.get()
00601         currentBindings=idleConf.GetCurrentKeySet()
00602         if currentKeySetName in self.changedItems['keys']: #unsaved changes
00603             keySetChanges=self.changedItems['keys'][currentKeySetName]
00604             for event in keySetChanges:
00605                 currentBindings[event]=keySetChanges[event].split()
00606         currentKeySequences = list(currentBindings.values())
00607         newKeys=GetKeysDialog(self,'Get New Keys',bindName,
00608                 currentKeySequences).result
00609         if newKeys: #new keys were specified
00610             if self.keysAreBuiltin.get(): #current key set is a built-in
00611                 message=('Your changes will be saved as a new Custom Key Set. '+
00612                         'Enter a name for your new Custom Key Set below.')
00613                 newKeySet=self.GetNewKeysName(message)
00614                 if not newKeySet: #user cancelled custom key set creation
00615                     self.listBindings.select_set(listIndex)
00616                     self.listBindings.select_anchor(listIndex)
00617                     return
00618                 else: #create new custom key set based on previously active key set
00619                     self.CreateNewKeySet(newKeySet)
00620             self.listBindings.delete(listIndex)
00621             self.listBindings.insert(listIndex,bindName+' - '+newKeys)
00622             self.listBindings.select_set(listIndex)
00623             self.listBindings.select_anchor(listIndex)
00624             self.keyBinding.set(newKeys)
00625         else:
00626             self.listBindings.select_set(listIndex)
00627             self.listBindings.select_anchor(listIndex)

Here is the call graph for this function:

def idlelib.configDialog.ConfigDialog.GetNewKeysName (   self,
  message 
)

Definition at line 628 of file configDialog.py.

00628 
00629     def GetNewKeysName(self,message):
00630         usedNames=(idleConf.GetSectionList('user','keys')+
00631                 idleConf.GetSectionList('default','keys'))
00632         newKeySet=GetCfgSectionNameDialog(self,'New Custom Key Set',
00633                 message,usedNames).result
00634         return newKeySet

Here is the caller graph for this function:

Definition at line 777 of file configDialog.py.

00777 
00778     def GetNewThemeName(self,message):
00779         usedNames=(idleConf.GetSectionList('user','highlight')+
00780                 idleConf.GetSectionList('default','highlight'))
00781         newTheme=GetCfgSectionNameDialog(self,'New Custom Theme',
00782                 message,usedNames).result
00783         return newTheme

Here is the caller graph for this function:

def tkinter.Misc.getvar (   self,
  name = 'PY_VAR' 
) [inherited]
Return value of Tcl variable NAME.

Definition at line 408 of file __init__.py.

00408 
00409     def getvar(self, name='PY_VAR'):
00410         """Return value of Tcl variable NAME."""
        return self.tk.getvar(name)
def tkinter.Misc.grab_current (   self) [inherited]
Return widget which has currently the grab in this application
or None.

Definition at line 554 of file __init__.py.

00554 
00555     def grab_current(self):
00556         """Return widget which has currently the grab in this application
00557         or None."""
00558         name = self.tk.call('grab', 'current', self._w)
00559         if not name: return None
        return self._nametowidget(name)
def tkinter.Misc.grab_release (   self) [inherited]
Release grab for this widget if currently set.

Definition at line 560 of file __init__.py.

00560 
00561     def grab_release(self):
00562         """Release grab for this widget if currently set."""
        self.tk.call('grab', 'release', self._w)
def tkinter.Misc.grab_set (   self) [inherited]
Set grab for this widget.

A grab directs all events to this and descendant
widgets in the application.

Definition at line 563 of file __init__.py.

00563 
00564     def grab_set(self):
00565         """Set grab for this widget.
00566 
00567         A grab directs all events to this and descendant
00568         widgets in the application."""
        self.tk.call('grab', 'set', self._w)

Here is the caller graph for this function:

def tkinter.Misc.grab_set_global (   self) [inherited]
Set global grab for this widget.

A global grab directs all events to this and
descendant widgets on the display. Use with caution -
other applications do not get events anymore.

Definition at line 569 of file __init__.py.

00569 
00570     def grab_set_global(self):
00571         """Set global grab for this widget.
00572 
00573         A global grab directs all events to this and
00574         descendant widgets on the display. Use with caution -
00575         other applications do not get events anymore."""
        self.tk.call('grab', 'set', '-global', self._w)
def tkinter.Misc.grab_status (   self) [inherited]
Return None, "local" or "global" if this widget has
no, a local or a global grab.

Definition at line 576 of file __init__.py.

00576 
00577     def grab_status(self):
00578         """Return None, "local" or "global" if this widget has
00579         no, a local or a global grab."""
00580         status = self.tk.call('grab', 'status', self._w)
00581         if status == 'none': status = None
        return status
def tkinter.Misc.grid_bbox (   self,
  column = None,
  row = None,
  col2 = None,
  row2 = None 
) [inherited]
Return a tuple of integer coordinates for the bounding
box of this widget controlled by the geometry manager grid.

If COLUMN, ROW is given the bounding box applies from
the cell with row and column 0 to the specified
cell. If COL2 and ROW2 are given the bounding box
starts at that cell.

The returned integers specify the offset of the upper left
corner in the master widget and the width and height.

Definition at line 1239 of file __init__.py.

01239 
01240     def grid_bbox(self, column=None, row=None, col2=None, row2=None):
01241         """Return a tuple of integer coordinates for the bounding
01242         box of this widget controlled by the geometry manager grid.
01243 
01244         If COLUMN, ROW is given the bounding box applies from
01245         the cell with row and column 0 to the specified
01246         cell. If COL2 and ROW2 are given the bounding box
01247         starts at that cell.
01248 
01249         The returned integers specify the offset of the upper left
01250         corner in the master widget and the width and height.
01251         """
01252         args = ('grid', 'bbox', self._w)
01253         if column is not None and row is not None:
01254             args = args + (column, row)
01255         if col2 is not None and row2 is not None:
01256             args = args + (col2, row2)
01257         return self._getints(self.tk.call(*args)) or None

Here is the call graph for this function:

def tkinter.Misc.grid_columnconfigure (   self,
  index,
  cnf = {},
  kw 
) [inherited]
Configure column INDEX of a grid.

Valid resources are minsize (minimum size of the column),
weight (how much does additional space propagate to this column)
and pad (how much space to let additionally).

Definition at line 1293 of file __init__.py.

01293 
01294     def grid_columnconfigure(self, index, cnf={}, **kw):
01295         """Configure column INDEX of a grid.
01296 
01297         Valid resources are minsize (minimum size of the column),
01298         weight (how much does additional space propagate to this column)
01299         and pad (how much space to let additionally)."""
        return self._grid_configure('columnconfigure', index, cnf, kw)

Here is the call graph for this function:

def tkinter.Misc.grid_location (   self,
  x,
  y 
) [inherited]
Return a tuple of column and row which identify the cell
at which the pixel at position X and Y inside the master
widget is located.

Definition at line 1301 of file __init__.py.

01301 
01302     def grid_location(self, x, y):
01303         """Return a tuple of column and row which identify the cell
01304         at which the pixel at position X and Y inside the master
01305         widget is located."""
01306         return self._getints(
01307             self.tk.call(
                'grid', 'location', self._w, x, y)) or None

Here is the call graph for this function:

def tkinter.Misc.grid_propagate (   self,
  flag = _noarg_ 
) [inherited]
Set or get the status for propagation of geometry information.

A boolean argument specifies whether the geometry information
of the slaves will determine the size of this widget. If no argument
is given, the current setting will be returned.

Definition at line 1308 of file __init__.py.

01308 
01309     def grid_propagate(self, flag=_noarg_):
01310         """Set or get the status for propagation of geometry information.
01311 
01312         A boolean argument specifies whether the geometry information
01313         of the slaves will determine the size of this widget. If no argument
01314         is given, the current setting will be returned.
01315         """
01316         if flag is Misc._noarg_:
01317             return self._getboolean(self.tk.call(
01318                 'grid', 'propagate', self._w))
01319         else:
            self.tk.call('grid', 'propagate', self._w, flag)

Here is the call graph for this function:

def tkinter.Misc.grid_rowconfigure (   self,
  index,
  cnf = {},
  kw 
) [inherited]
Configure row INDEX of a grid.

Valid resources are minsize (minimum size of the row),
weight (how much does additional space propagate to this row)
and pad (how much space to let additionally).

Definition at line 1320 of file __init__.py.

01320 
01321     def grid_rowconfigure(self, index, cnf={}, **kw):
01322         """Configure row INDEX of a grid.
01323 
01324         Valid resources are minsize (minimum size of the row),
01325         weight (how much does additional space propagate to this row)
01326         and pad (how much space to let additionally)."""
        return self._grid_configure('rowconfigure', index, cnf, kw)

Here is the call graph for this function:

def tkinter.Misc.grid_size (   self) [inherited]
Return a tuple of the number of column and rows in the grid.

Definition at line 1328 of file __init__.py.

01328 
01329     def grid_size(self):
01330         """Return a tuple of the number of column and rows in the grid."""
01331         return self._getints(
            self.tk.call('grid', 'size', self._w)) or None

Here is the call graph for this function:

def tkinter.Misc.grid_slaves (   self,
  row = None,
  column = None 
) [inherited]
Return a list of all slaves of this widget
in its packing order.

Definition at line 1333 of file __init__.py.

01333 
01334     def grid_slaves(self, row=None, column=None):
01335         """Return a list of all slaves of this widget
01336         in its packing order."""
01337         args = ()
01338         if row is not None:
01339             args = args + ('-row', row)
01340         if column is not None:
01341             args = args + ('-column', column)
01342         return [self._nametowidget(x) for x in
01343                 self.tk.splitlist(self.tk.call(
01344                    ('grid', 'slaves', self._w) + args))]

Definition at line 1134 of file configDialog.py.

01134 
01135     def Help(self):
01136         pass

Definition at line 885 of file configDialog.py.

00885 
00886     def HelpListItemAdd(self):
00887         helpSource=GetHelpSourceDialog(self,'New Help Source').result
00888         if helpSource:
00889             self.userHelpList.append( (helpSource[0],helpSource[1]) )
00890             self.listHelp.insert(END,helpSource[0])
00891             self.UpdateUserHelpChangedItems()
00892         self.SetHelpListButtonStates()

Here is the call graph for this function:

Definition at line 893 of file configDialog.py.

00893 
00894     def HelpListItemEdit(self):
00895         itemIndex=self.listHelp.index(ANCHOR)
00896         helpSource=self.userHelpList[itemIndex]
00897         newHelpSource=GetHelpSourceDialog(self,'Edit Help Source',
00898                 menuItem=helpSource[0],filePath=helpSource[1]).result
00899         if (not newHelpSource) or (newHelpSource==helpSource):
00900             return #no changes
00901         self.userHelpList[itemIndex]=newHelpSource
00902         self.listHelp.delete(itemIndex)
00903         self.listHelp.insert(itemIndex,newHelpSource[0])
00904         self.UpdateUserHelpChangedItems()
00905         self.SetHelpListButtonStates()

Here is the call graph for this function:

Definition at line 906 of file configDialog.py.

00906 
00907     def HelpListItemRemove(self):
00908         itemIndex=self.listHelp.index(ANCHOR)
00909         del(self.userHelpList[itemIndex])
00910         self.listHelp.delete(itemIndex)
00911         self.UpdateUserHelpChangedItems()
00912         self.SetHelpListButtonStates()

Here is the call graph for this function:

Definition at line 870 of file configDialog.py.

00870 
00871     def HelpSourceSelected(self,event):
00872         self.SetHelpListButtonStates()

Here is the call graph for this function:

def tkinter.Misc.image_names (   self) [inherited]
Return a list of all existing image names.

Reimplemented in tkinter.Text.

Definition at line 1377 of file __init__.py.

01377 
01378     def image_names(self):
01379         """Return a list of all existing image names."""
01380         return self.tk.call('image', 'names')

def tkinter.Misc.image_types (   self) [inherited]
Return a list of all available image types (e.g. phote bitmap).

Definition at line 1381 of file __init__.py.

01381 
01382     def image_types(self):
01383         """Return a list of all available image types (e.g. phote bitmap)."""
01384         return self.tk.call('image', 'types')
01385 

Definition at line 640 of file configDialog.py.

00640 
00641     def KeyBindingSelected(self,event):
00642         self.buttonNewKeys.config(state=NORMAL)

def tkinter.Misc.keys (   self) [inherited]
Return a list of all resource names of this widget.

Definition at line 1201 of file __init__.py.

01201 
01202     def keys(self):
01203         """Return a list of all resource names of this widget."""
01204         return [x[0][1:] for x in
                self.tk.split(self.tk.call(self._w, 'configure'))]
load configuration from default and user config files and populate
the widgets on the config dialog pages.

Definition at line 1037 of file configDialog.py.

01037 
01038     def LoadConfigs(self):
01039         """
01040         load configuration from default and user config files and populate
01041         the widgets on the config dialog pages.
01042         """
01043         ### fonts / tabs page
01044         self.LoadFontCfg()
01045         self.LoadTabCfg()
01046         ### highlighting page
01047         self.LoadThemeCfg()
01048         ### keys page
01049         self.LoadKeyCfg()
01050         ### general page
01051         self.LoadGeneralCfg()

Here is the call graph for this function:

Definition at line 920 of file configDialog.py.

00920 
00921     def LoadFontCfg(self):
00922         ##base editor font selection list
00923         fonts=list(tkFont.families(self))
00924         fonts.sort()
00925         for font in fonts:
00926             self.listFontName.insert(END,font)
00927         configuredFont=idleConf.GetOption('main','EditorWindow','font',
00928                 default='courier')
00929         lc_configuredFont = configuredFont.lower()
00930         self.fontName.set(lc_configuredFont)
00931         lc_fonts = [s.lower() for s in fonts]
00932         if lc_configuredFont in lc_fonts:
00933             currentFontIndex = lc_fonts.index(lc_configuredFont)
00934             self.listFontName.see(currentFontIndex)
00935             self.listFontName.select_set(currentFontIndex)
00936             self.listFontName.select_anchor(currentFontIndex)
00937         ##font size dropdown
00938         fontSize=idleConf.GetOption('main','EditorWindow','font-size',
00939                 default='10')
00940         self.optMenuFontSize.SetMenu(('7','8','9','10','11','12','13','14',
00941                 '16','18','20','22'),fontSize )
00942         ##fontWeight
00943         self.fontBold.set(idleConf.GetOption('main','EditorWindow',
00944                 'font-bold',default=0,type='bool'))
00945         ##font sample
00946         self.SetFontSample()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1016 of file configDialog.py.

01016 
01017     def LoadGeneralCfg(self):
01018         #startup state
01019         self.startupEdit.set(idleConf.GetOption('main','General',
01020                 'editor-on-startup',default=1,type='bool'))
01021         #autosave state
01022         self.autoSave.set(idleConf.GetOption('main', 'General', 'autosave',
01023                                              default=0, type='bool'))
01024         #initial window size
01025         self.winWidth.set(idleConf.GetOption('main','EditorWindow','width'))
01026         self.winHeight.set(idleConf.GetOption('main','EditorWindow','height'))
01027         #initial paragraph reformat size
01028         self.paraWidth.set(idleConf.GetOption('main','FormatParagraph','paragraph'))
01029         # default source encoding
01030         self.encoding.set(idleConf.GetOption('main', 'EditorWindow',
01031                                              'encoding', default='none'))
01032         # additional help sources
01033         self.userHelpList = idleConf.GetAllExtraHelpSourcesList()
01034         for helpItem in self.userHelpList:
01035             self.listHelp.insert(END,helpItem[0])
01036         self.SetHelpListButtonStates()

Here is the caller graph for this function:

Definition at line 986 of file configDialog.py.

00986 
00987     def LoadKeyCfg(self):
00988         ##current keys type radiobutton
00989         self.keysAreBuiltin.set(idleConf.GetOption('main','Keys','default',
00990             type='bool',default=1))
00991         ##currently set keys
00992         currentOption=idleConf.CurrentKeys()
00993         ##load available keyset option menus
00994         if self.keysAreBuiltin.get(): #default theme selected
00995             itemList=idleConf.GetSectionList('default','keys')
00996             itemList.sort()
00997             self.optMenuKeysBuiltin.SetMenu(itemList,currentOption)
00998             itemList=idleConf.GetSectionList('user','keys')
00999             itemList.sort()
01000             if not itemList:
01001                 self.radioKeysCustom.config(state=DISABLED)
01002                 self.customKeys.set('- no custom keys -')
01003             else:
01004                 self.optMenuKeysCustom.SetMenu(itemList,itemList[0])
01005         else: #user key set selected
01006             itemList=idleConf.GetSectionList('user','keys')
01007             itemList.sort()
01008             self.optMenuKeysCustom.SetMenu(itemList,currentOption)
01009             itemList=idleConf.GetSectionList('default','keys')
01010             itemList.sort()
01011             self.optMenuKeysBuiltin.SetMenu(itemList,itemList[0])
01012         self.SetKeysType()
01013         ##load keyset element list
01014         keySetName=idleConf.CurrentKeys()
01015         self.LoadKeysList(keySetName)

Here is the call graph for this function:

Here is the caller graph for this function:

def idlelib.configDialog.ConfigDialog.LoadKeysList (   self,
  keySetName 
)

Definition at line 670 of file configDialog.py.

00670 
00671     def LoadKeysList(self,keySetName):
00672         reselect=0
00673         newKeySet=0
00674         if self.listBindings.curselection():
00675             reselect=1
00676             listIndex=self.listBindings.index(ANCHOR)
00677         keySet=idleConf.GetKeySet(keySetName)
00678         bindNames = list(keySet.keys())
00679         bindNames.sort()
00680         self.listBindings.delete(0,END)
00681         for bindName in bindNames:
00682             key=' '.join(keySet[bindName]) #make key(s) into a string
00683             bindName=bindName[2:-2] #trim off the angle brackets
00684             if keySetName in self.changedItems['keys']:
00685                 #handle any unsaved changes to this key set
00686                 if bindName in self.changedItems['keys'][keySetName]:
00687                     key=self.changedItems['keys'][keySetName][bindName]
00688             self.listBindings.insert(END, bindName+' - '+key)
00689         if reselect:
00690             self.listBindings.see(listIndex)
00691             self.listBindings.select_set(listIndex)
00692             self.listBindings.select_anchor(listIndex)

Here is the caller graph for this function:

Definition at line 947 of file configDialog.py.

00947 
00948     def LoadTabCfg(self):
00949         ##indent sizes
00950         spaceNum=idleConf.GetOption('main','Indent','num-spaces',
00951                 default=4,type='int')
00952         self.spaceNum.set(spaceNum)

Here is the caller graph for this function:

Definition at line 953 of file configDialog.py.

00953 
00954     def LoadThemeCfg(self):
00955         ##current theme type radiobutton
00956         self.themeIsBuiltin.set(idleConf.GetOption('main','Theme','default',
00957             type='bool',default=1))
00958         ##currently set theme
00959         currentOption=idleConf.CurrentTheme()
00960         ##load available theme option menus
00961         if self.themeIsBuiltin.get(): #default theme selected
00962             itemList=idleConf.GetSectionList('default','highlight')
00963             itemList.sort()
00964             self.optMenuThemeBuiltin.SetMenu(itemList,currentOption)
00965             itemList=idleConf.GetSectionList('user','highlight')
00966             itemList.sort()
00967             if not itemList:
00968                 self.radioThemeCustom.config(state=DISABLED)
00969                 self.customTheme.set('- no custom themes -')
00970             else:
00971                 self.optMenuThemeCustom.SetMenu(itemList,itemList[0])
00972         else: #user theme selected
00973             itemList=idleConf.GetSectionList('user','highlight')
00974             itemList.sort()
00975             self.optMenuThemeCustom.SetMenu(itemList,currentOption)
00976             itemList=idleConf.GetSectionList('default','highlight')
00977             itemList.sort()
00978             self.optMenuThemeBuiltin.SetMenu(itemList,itemList[0])
00979         self.SetThemeType()
00980         ##load theme element option menu
00981         themeNames = list(self.themeElements.keys())
00982         themeNames.sort(key=lambda x: self.themeElements[x][1])
00983         self.optMenuHighlightTarget.SetMenu(themeNames,themeNames[0])
00984         self.PaintThemeSample()
00985         self.SetHighlightTarget()

Here is the call graph for this function:

Here is the caller graph for this function:

def tkinter.Misc.lower (   self,
  belowThis = None 
) [inherited]
Lower this widget in the stacking order.

Definition at line 655 of file __init__.py.

00655 
00656     def lower(self, belowThis=None):
00657         """Lower this widget in the stacking order."""
        self.tk.call('lower', self._w, belowThis)

Here is the caller graph for this function:

def tkinter.Misc.mainloop (   self,
  n = 0 
) [inherited]
Call the mainloop of Tk.

Definition at line 1007 of file __init__.py.

01007 
01008     def mainloop(self, n=0):
01009         """Call the mainloop of Tk."""
        self.tk.mainloop(n)
def tkinter.Misc.nametowidget (   self,
  name 
) [inherited]
Return the Tkinter instance of a widget identified by
its Tcl name NAME.

Definition at line 1057 of file __init__.py.

01057 
01058     def nametowidget(self, name):
01059         """Return the Tkinter instance of a widget identified by
01060         its Tcl name NAME."""
01061         name = str(name).split('.')
01062         w = self
01063 
01064         if not name[0]:
01065             w = w._root()
01066             name = name[1:]
01067 
01068         for n in name:
01069             if not n:
01070                 break
01071             w = w.children[n]
01072 
        return w

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1125 of file configDialog.py.

01125 
01126     def Ok(self):
01127         self.Apply()
01128         self.destroy()

Here is the call graph for this function:

Definition at line 813 of file configDialog.py.

00813 
00814     def OnListFontButtonRelease(self,event):
00815         font = self.listFontName.get(ANCHOR)
00816         self.fontName.set(font.lower())
00817         self.SetFontSample()

Here is the call graph for this function:

Definition at line 766 of file configDialog.py.

00766 
00767     def OnNewColourSet(self):
00768         newColour=self.colour.get()
00769         self.frameColourSet.config(bg=newColour)#set sample
00770         if self.fgHilite.get(): plane='foreground'
00771         else: plane='background'
00772         sampleElement=self.themeElements[self.highlightTarget.get()][0]
00773         self.textHighlightSample.tag_config(sampleElement, **{plane:newColour})
00774         theme=self.customTheme.get()
00775         themeElement=sampleElement+'-'+plane
00776         self.AddChangedItem('highlight',theme,themeElement,newColour)

Here is the call graph for this function:

Here is the caller graph for this function:

def tkinter.Misc.option_add (   self,
  pattern,
  value,
  priority = None 
) [inherited]
Set a VALUE (second parameter) for an option
PATTERN (first parameter).

An optional third parameter gives the numeric priority
(defaults to 80).

Definition at line 582 of file __init__.py.

00582 
00583     def option_add(self, pattern, value, priority = None):
00584         """Set a VALUE (second parameter) for an option
00585         PATTERN (first parameter).
00586 
00587         An optional third parameter gives the numeric priority
00588         (defaults to 80)."""
        self.tk.call('option', 'add', pattern, value, priority)
def tkinter.Misc.option_clear (   self) [inherited]
Clear the option database.

It will be reloaded if option_add is called.

Definition at line 589 of file __init__.py.

00589 
00590     def option_clear(self):
00591         """Clear the option database.
00592 
00593         It will be reloaded if option_add is called."""
        self.tk.call('option', 'clear')
def tkinter.Misc.option_get (   self,
  name,
  className 
) [inherited]
Return the value for an option NAME for this widget
with CLASSNAME.

Values with higher priority override lower values.

Definition at line 594 of file __init__.py.

00594 
00595     def option_get(self, name, className):
00596         """Return the value for an option NAME for this widget
00597         with CLASSNAME.
00598 
00599         Values with higher priority override lower values."""
        return self.tk.call('option', 'get', self._w, name, className)
def tkinter.Misc.option_readfile (   self,
  fileName,
  priority = None 
) [inherited]
Read file FILENAME into the option database.

An optional second parameter gives the numeric
priority.

Definition at line 600 of file __init__.py.

00600 
00601     def option_readfile(self, fileName, priority = None):
00602         """Read file FILENAME into the option database.
00603 
00604         An optional second parameter gives the numeric
00605         priority."""
        self.tk.call('option', 'readfile', fileName, priority)
def tkinter.Misc.pack_propagate (   self,
  flag = _noarg_ 
) [inherited]
Set or get the status for propagation of geometry information.

A boolean argument specifies whether the geometry information
of the slaves will determine the size of this widget. If no argument
is given the current setting will be returned.

Definition at line 1210 of file __init__.py.

01210 
01211     def pack_propagate(self, flag=_noarg_):
01212         """Set or get the status for propagation of geometry information.
01213 
01214         A boolean argument specifies whether the geometry information
01215         of the slaves will determine the size of this widget. If no argument
01216         is given the current setting will be returned.
01217         """
01218         if flag is Misc._noarg_:
01219             return self._getboolean(self.tk.call(
01220                 'pack', 'propagate', self._w))
01221         else:
            self.tk.call('pack', 'propagate', self._w, flag)

Here is the call graph for this function:

def tkinter.Misc.pack_slaves (   self) [inherited]
Return a list of all slaves of this widget
in its packing order.

Definition at line 1223 of file __init__.py.

01223 
01224     def pack_slaves(self):
01225         """Return a list of all slaves of this widget
01226         in its packing order."""
01227         return [self._nametowidget(x) for x in
01228                 self.tk.splitlist(
                   self.tk.call('pack', 'slaves', self._w))]

Definition at line 849 of file configDialog.py.

00849 
00850     def PaintThemeSample(self):
00851         if self.themeIsBuiltin.get(): #a default theme
00852             theme=self.builtinTheme.get()
00853         else: #a user theme
00854             theme=self.customTheme.get()
00855         for elementTitle in self.themeElements:
00856             element=self.themeElements[elementTitle][0]
00857             colours=idleConf.GetHighlight(theme,element)
00858             if element=='cursor': #cursor sample needs special painting
00859                 colours['background']=idleConf.GetHighlight(theme,
00860                         'normal', fgBg='bg')
00861             #handle any unsaved changes to this theme
00862             if theme in self.changedItems['highlight']:
00863                 themeDict=self.changedItems['highlight'][theme]
00864                 if element+'-foreground' in themeDict:
00865                     colours['foreground']=themeDict[element+'-foreground']
00866                 if element+'-background' in themeDict:
00867                     colours['background']=themeDict[element+'-background']
00868             self.textHighlightSample.tag_config(element, **colours)
00869         self.SetColourSample()

Here is the call graph for this function:

Here is the caller graph for this function:

def tkinter.Misc.place_slaves (   self) [inherited]
Return a list of all slaves of this widget
in its packing order.

Definition at line 1231 of file __init__.py.

01231 
01232     def place_slaves(self):
01233         """Return a list of all slaves of this widget
01234         in its packing order."""
01235         return [self._nametowidget(x) for x in
01236                 self.tk.splitlist(
01237                    self.tk.call(
                       'place', 'slaves', self._w))]
def tkinter.Misc.quit (   self) [inherited]
Quit the Tcl interpreter. All widgets will be destroyed.

Definition at line 1010 of file __init__.py.

01010 
01011     def quit(self):
01012         """Quit the Tcl interpreter. All widgets will be destroyed."""
        self.tk.quit()

Here is the caller graph for this function:

Definition at line 544 of file configDialog.py.

00544 
00545     def ResetChangedItems(self):
00546         #When any config item is changed in this dialog, an entry
00547         #should be made in the relevant section (config type) of this
00548         #dictionary. The key should be the config file section name and the
00549         #value a dictionary, whose key:value pairs are item=value pairs for
00550         #that config file section.
00551         self.changedItems={'main':{},'highlight':{},'keys':{},'extensions':{}}

Here is the caller graph for this function:

Definition at line 1084 of file configDialog.py.

01084 
01085     def SaveAllChangedConfigs(self):
01086         "Save configuration changes to the user config file."
01087         idleConf.userCfg['main'].Save()
01088         for configType in self.changedItems:
01089             cfgTypeHasChanges = False
01090             for section in self.changedItems[configType]:
01091                 if section == 'HelpFiles':
01092                     #this section gets completely replaced
01093                     idleConf.userCfg['main'].remove_section('HelpFiles')
01094                     cfgTypeHasChanges = True
01095                 for item in self.changedItems[configType][section]:
01096                     value = self.changedItems[configType][section][item]
01097                     if self.SetUserValue(configType,section,item,value):
01098                         cfgTypeHasChanges = True
01099             if cfgTypeHasChanges:
01100                 idleConf.userCfg[configType].Save()
01101         for configType in ['keys', 'highlight']:
01102             # save these even if unchanged!
01103             idleConf.userCfg[configType].Save()
01104         self.ResetChangedItems() #clear the changed items dict

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 635 of file configDialog.py.

00635 
00636     def SaveAsNewKeySet(self):
00637         newKeysName=self.GetNewKeysName('New Key Set Name:')
00638         if newKeysName:
00639             self.CreateNewKeySet(newKeysName)

Here is the call graph for this function:

Definition at line 784 of file configDialog.py.

00784 
00785     def SaveAsNewTheme(self):
00786         newThemeName=self.GetNewThemeName('New Theme Name:')
00787         if newThemeName:
00788             self.CreateNewTheme(newThemeName)

Here is the call graph for this function:

def idlelib.configDialog.ConfigDialog.SaveNewKeySet (   self,
  keySetName,
  keySet 
)
save a newly created core key set.
keySetName - string, the name of the new key set
keySet - dictionary containing the new key set

Definition at line 1052 of file configDialog.py.

01052 
01053     def SaveNewKeySet(self,keySetName,keySet):
01054         """
01055         save a newly created core key set.
01056         keySetName - string, the name of the new key set
01057         keySet - dictionary containing the new key set
01058         """
01059         if not idleConf.userCfg['keys'].has_section(keySetName):
01060             idleConf.userCfg['keys'].add_section(keySetName)
01061         for event in keySet:
01062             value=keySet[event]
01063             idleConf.userCfg['keys'].SetOption(keySetName,event,value)

Here is the caller graph for this function:

def idlelib.configDialog.ConfigDialog.SaveNewTheme (   self,
  themeName,
  theme 
)
save a newly created theme.
themeName - string, the name of the new theme
theme - dictionary containing the new theme

Definition at line 1064 of file configDialog.py.

01064 
01065     def SaveNewTheme(self,themeName,theme):
01066         """
01067         save a newly created theme.
01068         themeName - string, the name of the new theme
01069         theme - dictionary containing the new theme
01070         """
01071         if not idleConf.userCfg['highlight'].has_section(themeName):
01072             idleConf.userCfg['highlight'].add_section(themeName)
01073         for element in theme:
01074             value=theme[element]
01075             idleConf.userCfg['highlight'].SetOption(themeName,element,value)

Here is the caller graph for this function:

def tkinter.Misc.selection_clear (   self,
  kw 
) [inherited]
Clear the current X selection.

Definition at line 606 of file __init__.py.

00606 
00607     def selection_clear(self, **kw):
00608         """Clear the current X selection."""
00609         if 'displayof' not in kw: kw['displayof'] = self._w
        self.tk.call(('selection', 'clear') + self._options(kw))

Here is the call graph for this function:

def tkinter.Misc.selection_get (   self,
  kw 
) [inherited]
Return the contents of the current X selection.

A keyword parameter selection specifies the name of
the selection and defaults to PRIMARY.  A keyword
parameter displayof specifies a widget on the display
to use.

Definition at line 610 of file __init__.py.

00610 
00611     def selection_get(self, **kw):
00612         """Return the contents of the current X selection.
00613 
00614         A keyword parameter selection specifies the name of
00615         the selection and defaults to PRIMARY.  A keyword
00616         parameter displayof specifies a widget on the display
00617         to use."""
00618         if 'displayof' not in kw: kw['displayof'] = self._w
        return self.tk.call(('selection', 'get') + self._options(kw))

Here is the call graph for this function:

def tkinter.Misc.selection_handle (   self,
  command,
  kw 
) [inherited]
Specify a function COMMAND to call if the X
selection owned by this widget is queried by another
application.

This function must return the contents of the
selection. The function will be called with the
arguments OFFSET and LENGTH which allows the chunking
of very long selections. The following keyword
parameters can be provided:
selection - name of the selection (default PRIMARY),
type - type of the selection (e.g. STRING, FILE_NAME).

Definition at line 619 of file __init__.py.

00619 
00620     def selection_handle(self, command, **kw):
00621         """Specify a function COMMAND to call if the X
00622         selection owned by this widget is queried by another
00623         application.
00624 
00625         This function must return the contents of the
00626         selection. The function will be called with the
00627         arguments OFFSET and LENGTH which allows the chunking
00628         of very long selections. The following keyword
00629         parameters can be provided:
00630         selection - name of the selection (default PRIMARY),
00631         type - type of the selection (e.g. STRING, FILE_NAME)."""
00632         name = self._register(command)
00633         self.tk.call(('selection', 'handle') + self._options(kw)
              + (self._w, name))

Here is the call graph for this function:

def tkinter.Misc.selection_own (   self,
  kw 
) [inherited]
Become owner of X selection.

A keyword parameter selection specifies the name of
the selection (default PRIMARY).

Definition at line 634 of file __init__.py.

00634 
00635     def selection_own(self, **kw):
00636         """Become owner of X selection.
00637 
00638         A keyword parameter selection specifies the name of
00639         the selection (default PRIMARY)."""
00640         self.tk.call(('selection', 'own') +
                 self._options(kw) + (self._w,))

Here is the call graph for this function:

def tkinter.Misc.selection_own_get (   self,
  kw 
) [inherited]
Return owner of X selection.

The following keyword parameter can
be provided:
selection - name of the selection (default PRIMARY),
type - type of the selection (e.g. STRING, FILE_NAME).

Definition at line 641 of file __init__.py.

00641 
00642     def selection_own_get(self, **kw):
00643         """Return owner of X selection.
00644 
00645         The following keyword parameter can
00646         be provided:
00647         selection - name of the selection (default PRIMARY),
00648         type - type of the selection (e.g. STRING, FILE_NAME)."""
00649         if 'displayof' not in kw: kw['displayof'] = self._w
00650         name = self.tk.call(('selection', 'own') + self._options(kw))
00651         if not name: return None
        return self._nametowidget(name)

Here is the call graph for this function:

def tkinter.Misc.send (   self,
  interp,
  cmd,
  args 
) [inherited]
Send Tcl command CMD to different interpreter INTERP to be executed.

Definition at line 652 of file __init__.py.

00652 
00653     def send(self, interp, cmd, *args):
00654         """Send Tcl command CMD to different interpreter INTERP to be executed."""
        return self.tk.call(('send', interp, cmd) + args)

Here is the caller graph for this function:

Definition at line 841 of file configDialog.py.

00841 
00842     def SetColourSample(self):
00843         #set the colour smaple area
00844         tag=self.themeElements[self.highlightTarget.get()][0]
00845         if self.fgHilite.get(): plane='foreground'
00846         else: plane='background'
00847         colour=self.textHighlightSample.tag_cget(tag,plane)
00848         self.frameColourSet.config(bg=colour)

Here is the caller graph for this function:

Definition at line 838 of file configDialog.py.

00838 
00839     def SetColourSampleBinding(self,*args):
00840         self.SetColourSample()

Here is the call graph for this function:

def idlelib.configDialog.ConfigDialog.SetFontSample (   self,
  event = None 
)

Definition at line 818 of file configDialog.py.

00818 
00819     def SetFontSample(self,event=None):
00820         fontName=self.fontName.get()
00821         if self.fontBold.get():
00822             fontWeight=tkFont.BOLD
00823         else:
00824             fontWeight=tkFont.NORMAL
00825         self.editFont.config(size=self.fontSize.get(),
00826                 weight=fontWeight,family=fontName)

Here is the caller graph for this function:

Definition at line 873 of file configDialog.py.

00873 
00874     def SetHelpListButtonStates(self):
00875         if self.listHelp.size()<1: #no entries in list
00876             self.buttonHelpListEdit.config(state=DISABLED)
00877             self.buttonHelpListRemove.config(state=DISABLED)
00878         else: #there are some entries
00879             if self.listHelp.curselection(): #there currently is a selection
00880                 self.buttonHelpListEdit.config(state=NORMAL)
00881                 self.buttonHelpListRemove.config(state=NORMAL)
00882             else:  #there currently is not a selection
00883                 self.buttonHelpListEdit.config(state=DISABLED)
00884                 self.buttonHelpListRemove.config(state=DISABLED)

Here is the caller graph for this function:

Definition at line 827 of file configDialog.py.

00827 
00828     def SetHighlightTarget(self):
00829         if self.highlightTarget.get()=='Cursor': #bg not possible
00830             self.radioFg.config(state=DISABLED)
00831             self.radioBg.config(state=DISABLED)
00832             self.fgHilite.set(1)
00833         else: #both fg and bg can be set
00834             self.radioFg.config(state=NORMAL)
00835             self.radioBg.config(state=NORMAL)
00836             self.fgHilite.set(1)
00837         self.SetColourSample()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 581 of file configDialog.py.

00581 
00582     def SetKeysType(self):
00583         if self.keysAreBuiltin.get():
00584             self.optMenuKeysBuiltin.config(state=NORMAL)
00585             self.optMenuKeysCustom.config(state=DISABLED)
00586             self.buttonDeleteCustomKeys.config(state=DISABLED)
00587         else:
00588             self.optMenuKeysBuiltin.config(state=DISABLED)
00589             self.radioKeysCustom.config(state=NORMAL)
00590             self.optMenuKeysCustom.config(state=NORMAL)
00591             self.buttonDeleteCustomKeys.config(state=NORMAL)

Here is the caller graph for this function:

Definition at line 570 of file configDialog.py.

00570 
00571     def SetThemeType(self):
00572         if self.themeIsBuiltin.get():
00573             self.optMenuThemeBuiltin.config(state=NORMAL)
00574             self.optMenuThemeCustom.config(state=DISABLED)
00575             self.buttonDeleteCustomTheme.config(state=DISABLED)
00576         else:
00577             self.optMenuThemeBuiltin.config(state=DISABLED)
00578             self.radioThemeCustom.config(state=NORMAL)
00579             self.optMenuThemeCustom.config(state=NORMAL)
00580             self.buttonDeleteCustomTheme.config(state=NORMAL)

Here is the caller graph for this function:

def idlelib.configDialog.ConfigDialog.SetUserValue (   self,
  configType,
  section,
  item,
  value 
)

Definition at line 1076 of file configDialog.py.

01076 
01077     def SetUserValue(self,configType,section,item,value):
01078         if idleConf.defaultCfg[configType].has_option(section,item):
01079             if idleConf.defaultCfg[configType].Get(section,item)==value:
01080                 #the setting equals a default setting, remove it from user cfg
01081                 return idleConf.userCfg[configType].RemoveOption(section,item)
01082         #if we got here set the option
01083         return idleConf.userCfg[configType].SetOption(section,item,value)

Here is the caller graph for this function:

def tkinter.Misc.setvar (   self,
  name = 'PY_VAR',
  value = '1' 
) [inherited]
Set Tcl variable NAME to VALUE.

Definition at line 405 of file __init__.py.

00405 
00406     def setvar(self, name='PY_VAR', value='1'):
00407         """Set Tcl variable NAME to VALUE."""
        self.tk.setvar(name, value)
def tkinter.Misc.tk_bisque (   self) [inherited]
Change the color scheme to light brown as used in Tk 3.6 and before.

Definition at line 364 of file __init__.py.

00364 
00365     def tk_bisque(self):
00366         """Change the color scheme to light brown as used in Tk 3.6 and before."""
        self.tk.call('tk_bisque')
def tkinter.Misc.tk_focusFollowsMouse (   self) [inherited]
The widget under mouse will get automatically focus. Can not
be disabled easily.

Definition at line 453 of file __init__.py.

00453 
00454     def tk_focusFollowsMouse(self):
00455         """The widget under mouse will get automatically focus. Can not
00456         be disabled easily."""
        self.tk.call('tk_focusFollowsMouse')
def tkinter.Misc.tk_focusNext (   self) [inherited]
Return the next widget in the focus order which follows
widget which has currently the focus.

The focus order first goes to the next child, then to
the children of the child recursively and then to the
next sibling which is higher in the stacking order.  A
widget is omitted if it has the takefocus resource set
to 0.

Definition at line 457 of file __init__.py.

00457 
00458     def tk_focusNext(self):
00459         """Return the next widget in the focus order which follows
00460         widget which has currently the focus.
00461 
00462         The focus order first goes to the next child, then to
00463         the children of the child recursively and then to the
00464         next sibling which is higher in the stacking order.  A
00465         widget is omitted if it has the takefocus resource set
00466         to 0."""
00467         name = self.tk.call('tk_focusNext', self._w)
00468         if not name: return None
        return self._nametowidget(name)
def tkinter.Misc.tk_focusPrev (   self) [inherited]
Return previous widget in the focus order. See tk_focusNext for details.

Definition at line 469 of file __init__.py.

00469 
00470     def tk_focusPrev(self):
00471         """Return previous widget in the focus order. See tk_focusNext for details."""
00472         name = self.tk.call('tk_focusPrev', self._w)
00473         if not name: return None
        return self._nametowidget(name)
def tkinter.Misc.tk_menuBar (   self,
  args 
) [inherited]
Do not use. Needed in Tk 3.6 and earlier.

Definition at line 380 of file __init__.py.

00380 
00381     def tk_menuBar(self, *args):
00382         """Do not use. Needed in Tk 3.6 and earlier."""
        pass # obsolete since Tk 4.0
def tkinter.Misc.tk_setPalette (   self,
  args,
  kw 
) [inherited]
Set a new color scheme for all widget elements.

A single color as argument will cause that all colors of Tk
widget elements are derived from this.
Alternatively several keyword parameters and its associated
colors can be given. The following keywords are valid:
activeBackground, foreground, selectColor,
activeForeground, highlightBackground, selectBackground,
background, highlightColor, selectForeground,
disabledForeground, insertBackground, troughColor.

Definition at line 367 of file __init__.py.

00367 
00368     def tk_setPalette(self, *args, **kw):
00369         """Set a new color scheme for all widget elements.
00370 
00371         A single color as argument will cause that all colors of Tk
00372         widget elements are derived from this.
00373         Alternatively several keyword parameters and its associated
00374         colors can be given. The following keywords are valid:
00375         activeBackground, foreground, selectColor,
00376         activeForeground, highlightBackground, selectBackground,
00377         background, highlightColor, selectForeground,
00378         disabledForeground, insertBackground, troughColor."""
00379         self.tk.call(('tk_setPalette',)
              + _flatten(args) + _flatten(kw.items()))

Here is the call graph for this function:

def tkinter.Misc.tk_strictMotif (   self,
  boolean = None 
) [inherited]
Set Tcl internal variable, whether the look and feel
should adhere to Motif.

A parameter of 1 means adhere to Motif (e.g. no color
change if mouse passes over slider).
Returns the set value.

Definition at line 355 of file __init__.py.

00355 
00356     def tk_strictMotif(self, boolean=None):
00357         """Set Tcl internal variable, whether the look and feel
00358         should adhere to Motif.
00359 
00360         A parameter of 1 means adhere to Motif (e.g. no color
00361         change if mouse passes over slider).
00362         Returns the set value."""
00363         return self.tk.getboolean(self.tk.call(
            'set', 'tk_strictMotif', boolean))
def tkinter.Misc.tkraise (   self,
  aboveThis = None 
) [inherited]
Raise this widget in the stacking order.

Definition at line 658 of file __init__.py.

00658 
00659     def tkraise(self, aboveThis=None):
00660         """Raise this widget in the stacking order."""
        self.tk.call('raise', self._w, aboveThis)

Here is the caller graph for this function:

def tkinter.Misc.unbind (   self,
  sequence,
  funcid = None 
) [inherited]
Unbind for this widget for event SEQUENCE  the
function identified with FUNCID.

Definition at line 978 of file __init__.py.

00978 
00979     def unbind(self, sequence, funcid=None):
00980         """Unbind for this widget for event SEQUENCE  the
00981         function identified with FUNCID."""
00982         self.tk.call('bind', self._w, sequence, '')
00983         if funcid:
            self.deletecommand(funcid)

Here is the call graph for this function:

Here is the caller graph for this function:

def tkinter.Misc.unbind_all (   self,
  sequence 
) [inherited]
Unbind for all widgets for event SEQUENCE all functions.

Definition at line 990 of file __init__.py.

00990 
00991     def unbind_all(self, sequence):
00992         """Unbind for all widgets for event SEQUENCE all functions."""
        self.tk.call('bind', 'all' , sequence, '')
def tkinter.Misc.unbind_class (   self,
  className,
  sequence 
) [inherited]
Unbind for a all widgets with bindtag CLASSNAME for event SEQUENCE
all functions.

Definition at line 1003 of file __init__.py.

01003 
01004     def unbind_class(self, className, sequence):
01005         """Unbind for a all widgets with bindtag CLASSNAME for event SEQUENCE
01006         all functions."""
        self.tk.call('bind', className , sequence, '')
def tkinter.Misc.update (   self) [inherited]
Enter event loop until all pending events have been processed by Tcl.

Reimplemented in tkinter.tix.Control.

Definition at line 901 of file __init__.py.

00901 
00902     def update(self):
00903         """Enter event loop until all pending events have been processed by Tcl."""
        self.tk.call('update')

Here is the caller graph for this function:

def tkinter.Misc.update_idletasks (   self) [inherited]
Enter event loop until all idle callbacks have been called. This
will update the display of windows but not process events caused by
the user.

Definition at line 904 of file __init__.py.

00904 
00905     def update_idletasks(self):
00906         """Enter event loop until all idle callbacks have been called. This
00907         will update the display of windows but not process events caused by
00908         the user."""
        self.tk.call('update', 'idletasks')

Here is the caller graph for this function:

Definition at line 913 of file configDialog.py.

00913 
00914     def UpdateUserHelpChangedItems(self):
00915         "Clear and rebuild the HelpFiles section in self.changedItems"
00916         self.changedItems['main']['HelpFiles'] = {}
00917         for num in range(1,len(self.userHelpList)+1):
00918             self.AddChangedItem('main','HelpFiles',str(num),
00919                     ';'.join(self.userHelpList[num-1][:2]))

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 536 of file configDialog.py.

00536 
00537     def VarChanged_autoSave(self,*params):
00538         value=self.autoSave.get()
00539         self.AddChangedItem('main','General','autosave',value)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 501 of file configDialog.py.

00501 
00502     def VarChanged_builtinKeys(self,*params):
00503         value=self.builtinKeys.get()
00504         self.AddChangedItem('main','Keys','name',value)
00505         self.LoadKeysList(value)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 467 of file configDialog.py.

00467 
00468     def VarChanged_builtinTheme(self,*params):
00469         value=self.builtinTheme.get()
00470         self.AddChangedItem('main','Theme','name',value)
00471         self.PaintThemeSample()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 464 of file configDialog.py.

00464 
00465     def VarChanged_colour(self,*params):
00466         self.OnNewColourSet()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 506 of file configDialog.py.

00506 
00507     def VarChanged_customKeys(self,*params):
00508         value=self.customKeys.get()
00509         if value != '- no custom keys -':
00510             self.AddChangedItem('main','Keys','name',value)
00511             self.LoadKeysList(value)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 472 of file configDialog.py.

00472 
00473     def VarChanged_customTheme(self,*params):
00474         value=self.customTheme.get()
00475         if value != '- no custom themes -':
00476             self.AddChangedItem('main','Theme','name',value)
00477             self.PaintThemeSample()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 540 of file configDialog.py.

00540 
00541     def VarChanged_encoding(self,*params):
00542         value=self.encoding.get()
00543         self.AddChangedItem('main','EditorWindow','encoding',value)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 456 of file configDialog.py.

00456 
00457     def VarChanged_fontBold(self,*params):
00458         value=self.fontBold.get()
00459         self.AddChangedItem('main','EditorWindow','font-bold',value)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 452 of file configDialog.py.

00452 
00453     def VarChanged_fontName(self,*params):
00454         value=self.fontName.get()
00455         self.AddChangedItem('main','EditorWindow','font',value)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 448 of file configDialog.py.

00448 
00449     def VarChanged_fontSize(self,*params):
00450         value=self.fontSize.get()
00451         self.AddChangedItem('main','EditorWindow','font-size',value)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 486 of file configDialog.py.

00486 
00487     def VarChanged_highlightTarget(self,*params):
00488         self.SetHighlightTarget()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 489 of file configDialog.py.

00489 
00490     def VarChanged_keyBinding(self,*params):
00491         value=self.keyBinding.get()
00492         keySet=self.customKeys.get()
00493         event=self.listBindings.get(ANCHOR).split()[0]
00494         if idleConf.IsCoreBinding(event):
00495             #this is a core keybinding
00496             self.AddChangedItem('keys',keySet,event,value)
00497         else: #this is an extension key binding
00498             extName=idleConf.GetExtnNameForEvent(event)
00499             extKeybindSection=extName+'_cfgBindings'
00500             self.AddChangedItem('extensions',extKeybindSection,event,value)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 512 of file configDialog.py.

00512 
00513     def VarChanged_keysAreBuiltin(self,*params):
00514         value=self.keysAreBuiltin.get()
00515         self.AddChangedItem('main','Keys','default',value)
00516         if value:
00517             self.VarChanged_builtinKeys()
00518         else:
00519             self.VarChanged_customKeys()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 528 of file configDialog.py.

00528 
00529     def VarChanged_paraWidth(self,*params):
00530         value=self.paraWidth.get()
00531         self.AddChangedItem('main','FormatParagraph','paragraph',value)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 460 of file configDialog.py.

00460 
00461     def VarChanged_spaceNum(self,*params):
00462         value=self.spaceNum.get()
00463         self.AddChangedItem('main','Indent','num-spaces',value)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 532 of file configDialog.py.

00532 
00533     def VarChanged_startupEdit(self,*params):
00534         value=self.startupEdit.get()
00535         self.AddChangedItem('main','General','editor-on-startup',value)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 478 of file configDialog.py.

00478 
00479     def VarChanged_themeIsBuiltin(self,*params):
00480         value=self.themeIsBuiltin.get()
00481         self.AddChangedItem('main','Theme','default',value)
00482         if value:
00483             self.VarChanged_builtinTheme()
00484         else:
00485             self.VarChanged_customTheme()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 524 of file configDialog.py.

00524 
00525     def VarChanged_winHeight(self,*params):
00526         value=self.winHeight.get()
00527         self.AddChangedItem('main','EditorWindow','height',value)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 520 of file configDialog.py.

00520 
00521     def VarChanged_winWidth(self,*params):
00522         value=self.winWidth.get()
00523         self.AddChangedItem('main','EditorWindow','width',value)

Here is the call graph for this function:

Here is the caller graph for this function:

def tkinter.Misc.wait_variable (   self,
  name = 'PY_VAR' 
) [inherited]
Wait until the variable is modified.

A parameter of type IntVar, StringVar, DoubleVar or
BooleanVar must be given.

Definition at line 383 of file __init__.py.

00383 
00384     def wait_variable(self, name='PY_VAR'):
00385         """Wait until the variable is modified.
00386 
00387         A parameter of type IntVar, StringVar, DoubleVar or
00388         BooleanVar must be given."""
        self.tk.call('tkwait', 'variable', name)
def tkinter.Misc.wait_visibility (   self,
  window = None 
) [inherited]
Wait until the visibility of a WIDGET changes
(e.g. it appears).

If no parameter is given self is used.

Definition at line 397 of file __init__.py.

00397 
00398     def wait_visibility(self, window=None):
00399         """Wait until the visibility of a WIDGET changes
00400         (e.g. it appears).
00401 
00402         If no parameter is given self is used."""
00403         if window is None:
00404             window = self
        self.tk.call('tkwait', 'visibility', window._w)
def tkinter.Misc.wait_window (   self,
  window = None 
) [inherited]
Wait until a WIDGET is destroyed.

If no parameter is given self is used.

Definition at line 390 of file __init__.py.

00390 
00391     def wait_window(self, window=None):
00392         """Wait until a WIDGET is destroyed.
00393 
00394         If no parameter is given self is used."""
00395         if window is None:
00396             window = self
        self.tk.call('tkwait', 'window', window._w)
def tkinter.Misc.winfo_atom (   self,
  name,
  displayof = 0 
) [inherited]
Return integer which represents atom NAME.

Definition at line 665 of file __init__.py.

00665 
00666     def winfo_atom(self, name, displayof=0):
00667         """Return integer which represents atom NAME."""
00668         args = ('winfo', 'atom') + self._displayof(displayof) + (name,)
        return getint(self.tk.call(args))

Here is the call graph for this function:

def tkinter.Misc.winfo_atomname (   self,
  id,
  displayof = 0 
) [inherited]
Return name of atom with identifier ID.

Definition at line 669 of file __init__.py.

00669 
00670     def winfo_atomname(self, id, displayof=0):
00671         """Return name of atom with identifier ID."""
00672         args = ('winfo', 'atomname') \
00673                + self._displayof(displayof) + (id,)
        return self.tk.call(args)

Here is the call graph for this function:

def tkinter.Misc.winfo_cells (   self) [inherited]
Return number of cells in the colormap for this widget.

Definition at line 674 of file __init__.py.

00674 
00675     def winfo_cells(self):
00676         """Return number of cells in the colormap for this widget."""
00677         return getint(
            self.tk.call('winfo', 'cells', self._w))
def tkinter.Misc.winfo_children (   self) [inherited]
Return a list of all widgets which are children of this widget.

Definition at line 678 of file __init__.py.

00678 
00679     def winfo_children(self):
00680         """Return a list of all widgets which are children of this widget."""
00681         result = []
00682         for child in self.tk.splitlist(
00683             self.tk.call('winfo', 'children', self._w)):
00684             try:
00685                 # Tcl sometimes returns extra windows, e.g. for
00686                 # menus; those need to be skipped
00687                 result.append(self._nametowidget(child))
00688             except KeyError:
00689                 pass
00690         return result

def tkinter.Misc.winfo_class (   self) [inherited]
Return window class name of this widget.

Definition at line 691 of file __init__.py.

00691 
00692     def winfo_class(self):
00693         """Return window class name of this widget."""
        return self.tk.call('winfo', 'class', self._w)
def tkinter.Misc.winfo_colormapfull (   self) [inherited]
Return true if at the last color request the colormap was full.

Definition at line 694 of file __init__.py.

00694 
00695     def winfo_colormapfull(self):
00696         """Return true if at the last color request the colormap was full."""
00697         return self.tk.getboolean(
            self.tk.call('winfo', 'colormapfull', self._w))
def tkinter.Misc.winfo_containing (   self,
  rootX,
  rootY,
  displayof = 0 
) [inherited]
Return the widget which is at the root coordinates ROOTX, ROOTY.

Definition at line 698 of file __init__.py.

00698 
00699     def winfo_containing(self, rootX, rootY, displayof=0):
00700         """Return the widget which is at the root coordinates ROOTX, ROOTY."""
00701         args = ('winfo', 'containing') \
00702                + self._displayof(displayof) + (rootX, rootY)
00703         name = self.tk.call(args)
00704         if not name: return None
        return self._nametowidget(name)

Here is the call graph for this function:

def tkinter.Misc.winfo_depth (   self) [inherited]
Return the number of bits per pixel.

Definition at line 705 of file __init__.py.

00705 
00706     def winfo_depth(self):
00707         """Return the number of bits per pixel."""
        return getint(self.tk.call('winfo', 'depth', self._w))
def tkinter.Misc.winfo_exists (   self) [inherited]
Return true if this widget exists.

Definition at line 708 of file __init__.py.

00708 
00709     def winfo_exists(self):
00710         """Return true if this widget exists."""
00711         return getint(
            self.tk.call('winfo', 'exists', self._w))
def tkinter.Misc.winfo_fpixels (   self,
  number 
) [inherited]
Return the number of pixels for the given distance NUMBER
(e.g. "3c") as float.

Definition at line 712 of file __init__.py.

00712 
00713     def winfo_fpixels(self, number):
00714         """Return the number of pixels for the given distance NUMBER
00715         (e.g. "3c") as float."""
00716         return getdouble(self.tk.call(
            'winfo', 'fpixels', self._w, number))
def tkinter.Misc.winfo_geometry (   self) [inherited]
Return geometry string for this widget in the form "widthxheight+X+Y".

Definition at line 717 of file __init__.py.

00717 
00718     def winfo_geometry(self):
00719         """Return geometry string for this widget in the form "widthxheight+X+Y"."""
        return self.tk.call('winfo', 'geometry', self._w)
def tkinter.Misc.winfo_height (   self) [inherited]
Return height of this widget.

Definition at line 720 of file __init__.py.

00720 
00721     def winfo_height(self):
00722         """Return height of this widget."""
00723         return getint(
            self.tk.call('winfo', 'height', self._w))
def tkinter.Misc.winfo_id (   self) [inherited]
Return identifier ID for this widget.

Definition at line 724 of file __init__.py.

00724 
00725     def winfo_id(self):
00726         """Return identifier ID for this widget."""
00727         return self.tk.getint(
            self.tk.call('winfo', 'id', self._w))
def tkinter.Misc.winfo_interps (   self,
  displayof = 0 
) [inherited]
Return the name of all Tcl interpreters for this display.

Definition at line 728 of file __init__.py.

00728 
00729     def winfo_interps(self, displayof=0):
00730         """Return the name of all Tcl interpreters for this display."""
00731         args = ('winfo', 'interps') + self._displayof(displayof)
        return self.tk.splitlist(self.tk.call(args))

Here is the call graph for this function:

def tkinter.Misc.winfo_ismapped (   self) [inherited]
Return true if this widget is mapped.

Definition at line 732 of file __init__.py.

00732 
00733     def winfo_ismapped(self):
00734         """Return true if this widget is mapped."""
00735         return getint(
            self.tk.call('winfo', 'ismapped', self._w))
def tkinter.Misc.winfo_manager (   self) [inherited]
Return the window mananger name for this widget.

Definition at line 736 of file __init__.py.

00736 
00737     def winfo_manager(self):
00738         """Return the window mananger name for this widget."""
        return self.tk.call('winfo', 'manager', self._w)
def tkinter.Misc.winfo_name (   self) [inherited]
Return the name of this widget.

Definition at line 739 of file __init__.py.

00739 
00740     def winfo_name(self):
00741         """Return the name of this widget."""
        return self.tk.call('winfo', 'name', self._w)
def tkinter.Misc.winfo_parent (   self) [inherited]
Return the name of the parent of this widget.

Definition at line 742 of file __init__.py.

00742 
00743     def winfo_parent(self):
00744         """Return the name of the parent of this widget."""
        return self.tk.call('winfo', 'parent', self._w)
def tkinter.Misc.winfo_pathname (   self,
  id,
  displayof = 0 
) [inherited]
Return the pathname of the widget given by ID.

Definition at line 745 of file __init__.py.

00745 
00746     def winfo_pathname(self, id, displayof=0):
00747         """Return the pathname of the widget given by ID."""
00748         args = ('winfo', 'pathname') \
00749                + self._displayof(displayof) + (id,)
        return self.tk.call(args)

Here is the call graph for this function:

def tkinter.Misc.winfo_pixels (   self,
  number 
) [inherited]
Rounded integer value of winfo_fpixels.

Definition at line 750 of file __init__.py.

00750 
00751     def winfo_pixels(self, number):
00752         """Rounded integer value of winfo_fpixels."""
00753         return getint(
            self.tk.call('winfo', 'pixels', self._w, number))
def tkinter.Misc.winfo_pointerx (   self) [inherited]
Return the x coordinate of the pointer on the root window.

Definition at line 754 of file __init__.py.

00754 
00755     def winfo_pointerx(self):
00756         """Return the x coordinate of the pointer on the root window."""
00757         return getint(
            self.tk.call('winfo', 'pointerx', self._w))
def tkinter.Misc.winfo_pointerxy (   self) [inherited]
Return a tuple of x and y coordinates of the pointer on the root window.

Definition at line 758 of file __init__.py.

00758 
00759     def winfo_pointerxy(self):
00760         """Return a tuple of x and y coordinates of the pointer on the root window."""
00761         return self._getints(
            self.tk.call('winfo', 'pointerxy', self._w))

Here is the call graph for this function:

def tkinter.Misc.winfo_pointery (   self) [inherited]
Return the y coordinate of the pointer on the root window.

Definition at line 762 of file __init__.py.

00762 
00763     def winfo_pointery(self):
00764         """Return the y coordinate of the pointer on the root window."""
00765         return getint(
            self.tk.call('winfo', 'pointery', self._w))
def tkinter.Misc.winfo_reqheight (   self) [inherited]
Return requested height of this widget.

Definition at line 766 of file __init__.py.

00766 
00767     def winfo_reqheight(self):
00768         """Return requested height of this widget."""
00769         return getint(
            self.tk.call('winfo', 'reqheight', self._w))
def tkinter.Misc.winfo_reqwidth (   self) [inherited]
Return requested width of this widget.

Definition at line 770 of file __init__.py.

00770 
00771     def winfo_reqwidth(self):
00772         """Return requested width of this widget."""
00773         return getint(
            self.tk.call('winfo', 'reqwidth', self._w))
def tkinter.Misc.winfo_rgb (   self,
  color 
) [inherited]
Return tuple of decimal values for red, green, blue for
COLOR in this widget.

Definition at line 774 of file __init__.py.

00774 
00775     def winfo_rgb(self, color):
00776         """Return tuple of decimal values for red, green, blue for
00777         COLOR in this widget."""
00778         return self._getints(
            self.tk.call('winfo', 'rgb', self._w, color))

Here is the call graph for this function:

def tkinter.Misc.winfo_rootx (   self) [inherited]
Return x coordinate of upper left corner of this widget on the
root window.

Definition at line 779 of file __init__.py.

00779 
00780     def winfo_rootx(self):
00781         """Return x coordinate of upper left corner of this widget on the
00782         root window."""
00783         return getint(
            self.tk.call('winfo', 'rootx', self._w))

Here is the caller graph for this function:

def tkinter.Misc.winfo_rooty (   self) [inherited]
Return y coordinate of upper left corner of this widget on the
root window.

Definition at line 784 of file __init__.py.

00784 
00785     def winfo_rooty(self):
00786         """Return y coordinate of upper left corner of this widget on the
00787         root window."""
00788         return getint(
            self.tk.call('winfo', 'rooty', self._w))
def tkinter.Misc.winfo_screen (   self) [inherited]
Return the screen name of this widget.

Definition at line 789 of file __init__.py.

00789 
00790     def winfo_screen(self):
00791         """Return the screen name of this widget."""
        return self.tk.call('winfo', 'screen', self._w)
def tkinter.Misc.winfo_screencells (   self) [inherited]
Return the number of the cells in the colormap of the screen
of this widget.

Definition at line 792 of file __init__.py.

00792 
00793     def winfo_screencells(self):
00794         """Return the number of the cells in the colormap of the screen
00795         of this widget."""
00796         return getint(
            self.tk.call('winfo', 'screencells', self._w))
def tkinter.Misc.winfo_screendepth (   self) [inherited]
Return the number of bits per pixel of the root window of the
screen of this widget.

Definition at line 797 of file __init__.py.

00797 
00798     def winfo_screendepth(self):
00799         """Return the number of bits per pixel of the root window of the
00800         screen of this widget."""
00801         return getint(
            self.tk.call('winfo', 'screendepth', self._w))
def tkinter.Misc.winfo_screenheight (   self) [inherited]
Return the number of pixels of the height of the screen of this widget
in pixel.

Definition at line 802 of file __init__.py.

00802 
00803     def winfo_screenheight(self):
00804         """Return the number of pixels of the height of the screen of this widget
00805         in pixel."""
00806         return getint(
            self.tk.call('winfo', 'screenheight', self._w))

Here is the caller graph for this function:

def tkinter.Misc.winfo_screenmmheight (   self) [inherited]
Return the number of pixels of the height of the screen of
this widget in mm.

Definition at line 807 of file __init__.py.

00807 
00808     def winfo_screenmmheight(self):
00809         """Return the number of pixels of the height of the screen of
00810         this widget in mm."""
00811         return getint(
            self.tk.call('winfo', 'screenmmheight', self._w))
def tkinter.Misc.winfo_screenmmwidth (   self) [inherited]
Return the number of pixels of the width of the screen of
this widget in mm.

Definition at line 812 of file __init__.py.

00812 
00813     def winfo_screenmmwidth(self):
00814         """Return the number of pixels of the width of the screen of
00815         this widget in mm."""
00816         return getint(
            self.tk.call('winfo', 'screenmmwidth', self._w))
def tkinter.Misc.winfo_screenvisual (   self) [inherited]
Return one of the strings directcolor, grayscale, pseudocolor,
staticcolor, staticgray, or truecolor for the default
colormodel of this screen.

Definition at line 817 of file __init__.py.

00817 
00818     def winfo_screenvisual(self):
00819         """Return one of the strings directcolor, grayscale, pseudocolor,
00820         staticcolor, staticgray, or truecolor for the default
00821         colormodel of this screen."""
        return self.tk.call('winfo', 'screenvisual', self._w)
def tkinter.Misc.winfo_screenwidth (   self) [inherited]
Return the number of pixels of the width of the screen of
this widget in pixel.

Definition at line 822 of file __init__.py.

00822 
00823     def winfo_screenwidth(self):
00824         """Return the number of pixels of the width of the screen of
00825         this widget in pixel."""
00826         return getint(
            self.tk.call('winfo', 'screenwidth', self._w))

Here is the caller graph for this function:

def tkinter.Misc.winfo_server (   self) [inherited]
Return information of the X-Server of the screen of this widget in
the form "XmajorRminor vendor vendorVersion".

Definition at line 827 of file __init__.py.

00827 
00828     def winfo_server(self):
00829         """Return information of the X-Server of the screen of this widget in
00830         the form "XmajorRminor vendor vendorVersion"."""
        return self.tk.call('winfo', 'server', self._w)
def tkinter.Misc.winfo_toplevel (   self) [inherited]
Return the toplevel widget of this widget.

Definition at line 831 of file __init__.py.

00831 
00832     def winfo_toplevel(self):
00833         """Return the toplevel widget of this widget."""
00834         return self._nametowidget(self.tk.call(
            'winfo', 'toplevel', self._w))
def tkinter.Misc.winfo_viewable (   self) [inherited]
Return true if the widget and all its higher ancestors are mapped.

Definition at line 835 of file __init__.py.

00835 
00836     def winfo_viewable(self):
00837         """Return true if the widget and all its higher ancestors are mapped."""
00838         return getint(
            self.tk.call('winfo', 'viewable', self._w))
def tkinter.Misc.winfo_visual (   self) [inherited]
Return one of the strings directcolor, grayscale, pseudocolor,
staticcolor, staticgray, or truecolor for the
colormodel of this widget.

Definition at line 839 of file __init__.py.

00839 
00840     def winfo_visual(self):
00841         """Return one of the strings directcolor, grayscale, pseudocolor,
00842         staticcolor, staticgray, or truecolor for the
00843         colormodel of this widget."""
        return self.tk.call('winfo', 'visual', self._w)
def tkinter.Misc.winfo_visualid (   self) [inherited]
Return the X identifier for the visual for this widget.

Definition at line 844 of file __init__.py.

00844 
00845     def winfo_visualid(self):
00846         """Return the X identifier for the visual for this widget."""
        return self.tk.call('winfo', 'visualid', self._w)
def tkinter.Misc.winfo_visualsavailable (   self,
  includeids = 0 
) [inherited]
Return a list of all visuals available for the screen
of this widget.

Each item in the list consists of a visual name (see winfo_visual), a
depth and if INCLUDEIDS=1 is given also the X identifier.

Definition at line 847 of file __init__.py.

00847 
00848     def winfo_visualsavailable(self, includeids=0):
00849         """Return a list of all visuals available for the screen
00850         of this widget.
00851 
00852         Each item in the list consists of a visual name (see winfo_visual), a
00853         depth and if INCLUDEIDS=1 is given also the X identifier."""
00854         data = self.tk.split(
00855             self.tk.call('winfo', 'visualsavailable', self._w,
00856                      includeids and 'includeids' or None))
00857         if isinstance(data, str):
00858             data = [self.tk.split(data)]
        return [self.__winfo_parseitem(x) for x in  data]

Here is the call graph for this function:

def tkinter.Misc.winfo_vrootheight (   self) [inherited]
Return the height of the virtual root window associated with this
widget in pixels. If there is no virtual root window return the
height of the screen.

Definition at line 865 of file __init__.py.

00865 
00866     def winfo_vrootheight(self):
00867         """Return the height of the virtual root window associated with this
00868         widget in pixels. If there is no virtual root window return the
00869         height of the screen."""
00870         return getint(
            self.tk.call('winfo', 'vrootheight', self._w))
def tkinter.Misc.winfo_vrootwidth (   self) [inherited]
Return the width of the virtual root window associated with this
widget in pixel. If there is no virtual root window return the
width of the screen.

Definition at line 871 of file __init__.py.

00871 
00872     def winfo_vrootwidth(self):
00873         """Return the width of the virtual root window associated with this
00874         widget in pixel. If there is no virtual root window return the
00875         width of the screen."""
00876         return getint(
            self.tk.call('winfo', 'vrootwidth', self._w))
def tkinter.Misc.winfo_vrootx (   self) [inherited]
Return the x offset of the virtual root relative to the root
window of the screen of this widget.

Definition at line 877 of file __init__.py.

00877 
00878     def winfo_vrootx(self):
00879         """Return the x offset of the virtual root relative to the root
00880         window of the screen of this widget."""
00881         return getint(
            self.tk.call('winfo', 'vrootx', self._w))
def tkinter.Misc.winfo_vrooty (   self) [inherited]
Return the y offset of the virtual root relative to the root
window of the screen of this widget.

Definition at line 882 of file __init__.py.

00882 
00883     def winfo_vrooty(self):
00884         """Return the y offset of the virtual root relative to the root
00885         window of the screen of this widget."""
00886         return getint(
            self.tk.call('winfo', 'vrooty', self._w))
def tkinter.Misc.winfo_width (   self) [inherited]
Return the width of this widget.

Definition at line 887 of file __init__.py.

00887 
00888     def winfo_width(self):
00889         """Return the width of this widget."""
00890         return getint(
            self.tk.call('winfo', 'width', self._w))

Here is the caller graph for this function:

def tkinter.Misc.winfo_x (   self) [inherited]
Return the x coordinate of the upper left corner of this widget
in the parent.

Definition at line 891 of file __init__.py.

00891 
00892     def winfo_x(self):
00893         """Return the x coordinate of the upper left corner of this widget
00894         in the parent."""
00895         return getint(
            self.tk.call('winfo', 'x', self._w))
def tkinter.Misc.winfo_y (   self) [inherited]
Return the y coordinate of the upper left corner of this widget
in the parent.

Definition at line 896 of file __init__.py.

00896 
00897     def winfo_y(self):
00898         """Return the y coordinate of the upper left corner of this widget
00899         in the parent."""
00900         return getint(
            self.tk.call('winfo', 'y', self._w))
def tkinter.Wm.wm_aspect (   self,
  minNumer = None,
  minDenom = None,
  maxNumer = None,
  maxDenom = None 
) [inherited]
Instruct the window manager to set the aspect ratio (width/height)
of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple
of the actual values if no argument is given.

Definition at line 1453 of file __init__.py.

01453 
01454               maxNumer=None, maxDenom=None):
01455         """Instruct the window manager to set the aspect ratio (width/height)
01456         of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple
01457         of the actual values if no argument is given."""
01458         return self._getints(
01459             self.tk.call('wm', 'aspect', self._w,
01460                      minNumer, minDenom,
                     maxNumer, maxDenom))

Here is the call graph for this function:

def tkinter.Wm.wm_attributes (   self,
  args 
) [inherited]
This subcommand returns or sets platform specific attributes

The first form returns a list of the platform specific flags and
their values. The second form returns the value for the specific
option. The third form sets one or more of the values. The values
are as follows:

On Windows, -disabled gets or sets whether the window is in a
disabled state. -toolwindow gets or sets the style of the window
to toolwindow (as defined in the MSDN). -topmost gets or sets
whether this is a topmost window (displays above all other
windows).

On Macintosh, XXXXX

On Unix, there are currently no special attribute values.

Definition at line 1463 of file __init__.py.

01463 
01464     def wm_attributes(self, *args):
01465         """This subcommand returns or sets platform specific attributes
01466 
01467         The first form returns a list of the platform specific flags and
01468         their values. The second form returns the value for the specific
01469         option. The third form sets one or more of the values. The values
01470         are as follows:
01471 
01472         On Windows, -disabled gets or sets whether the window is in a
01473         disabled state. -toolwindow gets or sets the style of the window
01474         to toolwindow (as defined in the MSDN). -topmost gets or sets
01475         whether this is a topmost window (displays above all other
01476         windows).
01477 
01478         On Macintosh, XXXXX
01479 
01480         On Unix, there are currently no special attribute values.
01481         """
01482         args = ('wm', 'attributes', self._w) + args
        return self.tk.call(args)
def tkinter.Wm.wm_client (   self,
  name = None 
) [inherited]
Store NAME in WM_CLIENT_MACHINE property of this widget. Return
current value.

Definition at line 1485 of file __init__.py.

01485 
01486     def wm_client(self, name=None):
01487         """Store NAME in WM_CLIENT_MACHINE property of this widget. Return
01488         current value."""
        return self.tk.call('wm', 'client', self._w, name)
def tkinter.Wm.wm_colormapwindows (   self,
  wlist 
) [inherited]
Store list of window names (WLIST) into WM_COLORMAPWINDOWS property
of this widget. This list contains windows whose colormaps differ from their
parents. Return current list of widgets if WLIST is empty.

Definition at line 1490 of file __init__.py.

01490 
01491     def wm_colormapwindows(self, *wlist):
01492         """Store list of window names (WLIST) into WM_COLORMAPWINDOWS property
01493         of this widget. This list contains windows whose colormaps differ from their
01494         parents. Return current list of widgets if WLIST is empty."""
01495         if len(wlist) > 1:
01496             wlist = (wlist,) # Tk needs a list of windows here
01497         args = ('wm', 'colormapwindows', self._w) + wlist
        return [self._nametowidget(x) for x in  self.tk.call(args)]
def tkinter.Wm.wm_command (   self,
  value = None 
) [inherited]
Store VALUE in WM_COMMAND property. It is the command
which shall be used to invoke the application. Return current
command if VALUE is None.

Definition at line 1499 of file __init__.py.

01499 
01500     def wm_command(self, value=None):
01501         """Store VALUE in WM_COMMAND property. It is the command
01502         which shall be used to invoke the application. Return current
01503         command if VALUE is None."""
        return self.tk.call('wm', 'command', self._w, value)
def tkinter.Wm.wm_deiconify (   self) [inherited]
Deiconify this widget. If it was never mapped it will not be mapped.
On Windows it will raise this widget and give it the focus.

Definition at line 1505 of file __init__.py.

01505 
01506     def wm_deiconify(self):
01507         """Deiconify this widget. If it was never mapped it will not be mapped.
01508         On Windows it will raise this widget and give it the focus."""
        return self.tk.call('wm', 'deiconify', self._w)

Here is the caller graph for this function:

def tkinter.Wm.wm_focusmodel (   self,
  model = None 
) [inherited]
Set focus model to MODEL. "active" means that this widget will claim
the focus itself, "passive" means that the window manager shall give
the focus. Return current focus model if MODEL is None.

Definition at line 1510 of file __init__.py.

01510 
01511     def wm_focusmodel(self, model=None):
01512         """Set focus model to MODEL. "active" means that this widget will claim
01513         the focus itself, "passive" means that the window manager shall give
01514         the focus. Return current focus model if MODEL is None."""
        return self.tk.call('wm', 'focusmodel', self._w, model)
def tkinter.Wm.wm_frame (   self) [inherited]
Return identifier for decorative frame of this widget if present.

Definition at line 1516 of file __init__.py.

01516 
01517     def wm_frame(self):
01518         """Return identifier for decorative frame of this widget if present."""
        return self.tk.call('wm', 'frame', self._w)
def tkinter.Wm.wm_geometry (   self,
  newGeometry = None 
) [inherited]
Set geometry to NEWGEOMETRY of the form =widthxheight+x+y. Return
current value if None is given.

Definition at line 1520 of file __init__.py.

01520 
01521     def wm_geometry(self, newGeometry=None):
01522         """Set geometry to NEWGEOMETRY of the form =widthxheight+x+y. Return
01523         current value if None is given."""
        return self.tk.call('wm', 'geometry', self._w, newGeometry)
def tkinter.Wm.wm_grid (   self,
  baseWidth = None,
  baseHeight = None,
  widthInc = None,
  heightInc = None 
) [inherited]
Instruct the window manager that this widget shall only be
resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and
height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the
number of grid units requested in Tk_GeometryRequest.

Definition at line 1527 of file __init__.py.

01527 
01528          widthInc=None, heightInc=None):
01529         """Instruct the window manager that this widget shall only be
01530         resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and
01531         height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the
01532         number of grid units requested in Tk_GeometryRequest."""
01533         return self._getints(self.tk.call(
01534             'wm', 'grid', self._w,
            baseWidth, baseHeight, widthInc, heightInc))

Here is the call graph for this function:

def tkinter.Wm.wm_group (   self,
  pathName = None 
) [inherited]
Set the group leader widgets for related widgets to PATHNAME. Return
the group leader of this widget if None is given.

Definition at line 1536 of file __init__.py.

01536 
01537     def wm_group(self, pathName=None):
01538         """Set the group leader widgets for related widgets to PATHNAME. Return
01539         the group leader of this widget if None is given."""
        return self.tk.call('wm', 'group', self._w, pathName)
def tkinter.Wm.wm_iconbitmap (   self,
  bitmap = None,
  default = None 
) [inherited]
Set bitmap for the iconified widget to BITMAP. Return
the bitmap if None is given.

Under Windows, the DEFAULT parameter can be used to set the icon
for the widget and any descendents that don't have an icon set
explicitly.  DEFAULT can be the relative path to a .ico file
(example: root.iconbitmap(default='myicon.ico') ).  See Tk
documentation for more information.

Definition at line 1541 of file __init__.py.

01541 
01542     def wm_iconbitmap(self, bitmap=None, default=None):
01543         """Set bitmap for the iconified widget to BITMAP. Return
01544         the bitmap if None is given.
01545 
01546         Under Windows, the DEFAULT parameter can be used to set the icon
01547         for the widget and any descendents that don't have an icon set
01548         explicitly.  DEFAULT can be the relative path to a .ico file
01549         (example: root.iconbitmap(default='myicon.ico') ).  See Tk
01550         documentation for more information."""
01551         if default:
01552             return self.tk.call('wm', 'iconbitmap', self._w, '-default', default)
01553         else:
            return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
def tkinter.Wm.wm_iconify (   self) [inherited]
Display widget as icon.

Definition at line 1555 of file __init__.py.

01555 
01556     def wm_iconify(self):
01557         """Display widget as icon."""
        return self.tk.call('wm', 'iconify', self._w)
def tkinter.Wm.wm_iconmask (   self,
  bitmap = None 
) [inherited]
Set mask for the icon bitmap of this widget. Return the
mask if None is given.

Definition at line 1559 of file __init__.py.

01559 
01560     def wm_iconmask(self, bitmap=None):
01561         """Set mask for the icon bitmap of this widget. Return the
01562         mask if None is given."""
        return self.tk.call('wm', 'iconmask', self._w, bitmap)
def tkinter.Wm.wm_iconname (   self,
  newName = None 
) [inherited]
Set the name of the icon for this widget. Return the name if
None is given.

Definition at line 1564 of file __init__.py.

01564 
01565     def wm_iconname(self, newName=None):
01566         """Set the name of the icon for this widget. Return the name if
01567         None is given."""
        return self.tk.call('wm', 'iconname', self._w, newName)
def tkinter.Wm.wm_iconposition (   self,
  x = None,
  y = None 
) [inherited]
Set the position of the icon of this widget to X and Y. Return
a tuple of the current values of X and X if None is given.

Definition at line 1569 of file __init__.py.

01569 
01570     def wm_iconposition(self, x=None, y=None):
01571         """Set the position of the icon of this widget to X and Y. Return
01572         a tuple of the current values of X and X if None is given."""
01573         return self._getints(self.tk.call(
            'wm', 'iconposition', self._w, x, y))

Here is the call graph for this function:

def tkinter.Wm.wm_iconwindow (   self,
  pathName = None 
) [inherited]
Set widget PATHNAME to be displayed instead of icon. Return the current
value if None is given.

Definition at line 1575 of file __init__.py.

01575 
01576     def wm_iconwindow(self, pathName=None):
01577         """Set widget PATHNAME to be displayed instead of icon. Return the current
01578         value if None is given."""
        return self.tk.call('wm', 'iconwindow', self._w, pathName)
def tkinter.Wm.wm_maxsize (   self,
  width = None,
  height = None 
) [inherited]
Set max WIDTH and HEIGHT for this widget. If the window is gridded
the values are given in grid units. Return the current values if None
is given.

Definition at line 1580 of file __init__.py.

01580 
01581     def wm_maxsize(self, width=None, height=None):
01582         """Set max WIDTH and HEIGHT for this widget. If the window is gridded
01583         the values are given in grid units. Return the current values if None
01584         is given."""
01585         return self._getints(self.tk.call(
            'wm', 'maxsize', self._w, width, height))

Here is the call graph for this function:

def tkinter.Wm.wm_minsize (   self,
  width = None,
  height = None 
) [inherited]
Set min WIDTH and HEIGHT for this widget. If the window is gridded
the values are given in grid units. Return the current values if None
is given.

Definition at line 1587 of file __init__.py.

01587 
01588     def wm_minsize(self, width=None, height=None):
01589         """Set min WIDTH and HEIGHT for this widget. If the window is gridded
01590         the values are given in grid units. Return the current values if None
01591         is given."""
01592         return self._getints(self.tk.call(
            'wm', 'minsize', self._w, width, height))

Here is the call graph for this function:

def tkinter.Wm.wm_overrideredirect (   self,
  boolean = None 
) [inherited]
Instruct the window manager to ignore this widget
if BOOLEAN is given with 1. Return the current value if None
is given.

Definition at line 1594 of file __init__.py.

01594 
01595     def wm_overrideredirect(self, boolean=None):
01596         """Instruct the window manager to ignore this widget
01597         if BOOLEAN is given with 1. Return the current value if None
01598         is given."""
01599         return self._getboolean(self.tk.call(
            'wm', 'overrideredirect', self._w, boolean))

Here is the call graph for this function:

def tkinter.Wm.wm_positionfrom (   self,
  who = None 
) [inherited]
Instruct the window manager that the position of this widget shall
be defined by the user if WHO is "user", and by its own policy if WHO is
"program".

Definition at line 1601 of file __init__.py.

01601 
01602     def wm_positionfrom(self, who=None):
01603         """Instruct the window manager that the position of this widget shall
01604         be defined by the user if WHO is "user", and by its own policy if WHO is
01605         "program"."""
        return self.tk.call('wm', 'positionfrom', self._w, who)
def tkinter.Wm.wm_protocol (   self,
  name = None,
  func = None 
) [inherited]
Bind function FUNC to command NAME for this widget.
Return the function bound to NAME if None is given. NAME could be
e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW".

Definition at line 1607 of file __init__.py.

01607 
01608     def wm_protocol(self, name=None, func=None):
01609         """Bind function FUNC to command NAME for this widget.
01610         Return the function bound to NAME if None is given. NAME could be
01611         e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW"."""
01612         if hasattr(func, '__call__'):
01613             command = self._register(func)
01614         else:
01615             command = func
01616         return self.tk.call(
            'wm', 'protocol', self._w, name, command)

Here is the call graph for this function:

Here is the caller graph for this function:

def tkinter.Wm.wm_resizable (   self,
  width = None,
  height = None 
) [inherited]
Instruct the window manager whether this width can be resized
in WIDTH or HEIGHT. Both values are boolean values.

Definition at line 1618 of file __init__.py.

01618 
01619     def wm_resizable(self, width=None, height=None):
01620         """Instruct the window manager whether this width can be resized
01621         in WIDTH or HEIGHT. Both values are boolean values."""
        return self.tk.call('wm', 'resizable', self._w, width, height)
def tkinter.Wm.wm_sizefrom (   self,
  who = None 
) [inherited]
Instruct the window manager that the size of this widget shall
be defined by the user if WHO is "user", and by its own policy if WHO is
"program".

Definition at line 1623 of file __init__.py.

01623 
01624     def wm_sizefrom(self, who=None):
01625         """Instruct the window manager that the size of this widget shall
01626         be defined by the user if WHO is "user", and by its own policy if WHO is
01627         "program"."""
        return self.tk.call('wm', 'sizefrom', self._w, who)
def tkinter.Wm.wm_state (   self,
  newstate = None 
) [inherited]
Query or set the state of this widget as one of normal, icon,
iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only).

Definition at line 1629 of file __init__.py.

01629 
01630     def wm_state(self, newstate=None):
01631         """Query or set the state of this widget as one of normal, icon,
01632         iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only)."""
        return self.tk.call('wm', 'state', self._w, newstate)

Here is the caller graph for this function:

def tkinter.Wm.wm_title (   self,
  string = None 
) [inherited]
Set the title of this widget.

Definition at line 1634 of file __init__.py.

01634 
01635     def wm_title(self, string=None):
01636         """Set the title of this widget."""
        return self.tk.call('wm', 'title', self._w, string)

Here is the caller graph for this function:

def tkinter.Wm.wm_transient (   self,
  master = None 
) [inherited]
Instruct the window manager that this widget is transient
with regard to widget MASTER.

Definition at line 1638 of file __init__.py.

01638 
01639     def wm_transient(self, master=None):
01640         """Instruct the window manager that this widget is transient
01641         with regard to widget MASTER."""
        return self.tk.call('wm', 'transient', self._w, master)
def tkinter.Wm.wm_withdraw (   self) [inherited]
Withdraw this widget from the screen such that it is unmapped
and forgotten by the window manager. Re-draw it with wm_deiconify.

Definition at line 1643 of file __init__.py.

01643 
01644     def wm_withdraw(self):
01645         """Withdraw this widget from the screen such that it is unmapped
01646         and forgotten by the window manager. Re-draw it with wm_deiconify."""
        return self.tk.call('wm', 'withdraw', self._w)

Here is the caller graph for this function:


Member Data Documentation

tkinter.Wm.aspect = wm_aspect [static, inherited]

Definition at line 1461 of file __init__.py.

Definition at line 336 of file configDialog.py.

tkinter.Misc.bbox = grid_bbox [static, inherited]

Definition at line 1258 of file __init__.py.

Definition at line 263 of file configDialog.py.

Definition at line 264 of file configDialog.py.

Definition at line 173 of file configDialog.py.

Definition at line 91 of file configDialog.py.

Definition at line 94 of file configDialog.py.

Definition at line 301 of file configDialog.py.

Definition at line 236 of file configDialog.py.

Definition at line 85 of file configDialog.py.

Definition at line 389 of file configDialog.py.

Definition at line 387 of file configDialog.py.

Definition at line 391 of file configDialog.py.

Definition at line 288 of file configDialog.py.

Definition at line 88 of file configDialog.py.

Definition at line 550 of file configDialog.py.

Definition at line 1941 of file __init__.py.

tkinter.Wm.client = wm_client [static, inherited]

Definition at line 1489 of file __init__.py.

Definition at line 1498 of file __init__.py.

Definition at line 176 of file configDialog.py.

Definition at line 1300 of file __init__.py.

tkinter.Wm.command = wm_command [static, inherited]

Definition at line 1504 of file __init__.py.

tkinter.Misc.config = configure [static, inherited]

Definition at line 1194 of file __init__.py.

Definition at line 265 of file configDialog.py.

Definition at line 174 of file configDialog.py.

tkinter.Wm.deiconify = wm_deiconify [static, inherited]

Definition at line 1509 of file __init__.py.

Definition at line 115 of file configDialog.py.

Definition at line 337 of file configDialog.py.

Definition at line 175 of file configDialog.py.

tkinter.Misc.focus = focus_set [static, inherited]

Definition at line 423 of file __init__.py.

tkinter.Wm.focusmodel = wm_focusmodel [static, inherited]

Definition at line 1515 of file __init__.py.

Definition at line 112 of file configDialog.py.

Definition at line 113 of file configDialog.py.

Definition at line 111 of file configDialog.py.

tkinter.Wm.frame = wm_frame [static, inherited]

Definition at line 1519 of file __init__.py.

Definition at line 213 of file configDialog.py.

tkinter.Wm.geometry = wm_geometry [static, inherited]

Definition at line 1524 of file __init__.py.

tkinter.Misc.getdouble = float [static, inherited]

Definition at line 412 of file __init__.py.

tkinter.Misc.getint = int [static, inherited]

Definition at line 411 of file __init__.py.

tkinter.Wm.grid = wm_grid [static, inherited]

Definition at line 1535 of file __init__.py.

tkinter.Wm.group = wm_group [static, inherited]

Definition at line 1540 of file __init__.py.

Definition at line 339 of file configDialog.py.

Definition at line 179 of file configDialog.py.

tkinter.Wm.iconbitmap = wm_iconbitmap [static, inherited]

Definition at line 1554 of file __init__.py.

tkinter.Wm.iconify = wm_iconify [static, inherited]

Definition at line 1558 of file __init__.py.

tkinter.Wm.iconmask = wm_iconmask [static, inherited]

Definition at line 1563 of file __init__.py.

tkinter.Wm.iconname = wm_iconname [static, inherited]

Definition at line 1568 of file __init__.py.

Definition at line 1574 of file __init__.py.

tkinter.Wm.iconwindow = wm_iconwindow [static, inherited]

Definition at line 1579 of file __init__.py.

Definition at line 267 of file configDialog.py.

Definition at line 266 of file configDialog.py.

Definition at line 141 of file configDialog.py.

tkinter.Misc.lift = tkraise [static, inherited]

Reimplemented in tkinter.Canvas.

Definition at line 661 of file __init__.py.

widget creation body frame

Definition at line 281 of file configDialog.py.

widget creation body frame

Definition at line 129 of file configDialog.py.

Definition at line 382 of file configDialog.py.

Definition at line 1928 of file __init__.py.

tkinter.Wm.maxsize = wm_maxsize [static, inherited]

Definition at line 1586 of file __init__.py.

tkinter.Wm.minsize = wm_minsize [static, inherited]

Definition at line 1593 of file __init__.py.

Definition at line 136 of file configDialog.py.

Definition at line 217 of file configDialog.py.

Definition at line 297 of file configDialog.py.

Definition at line 299 of file configDialog.py.

Definition at line 232 of file configDialog.py.

Definition at line 234 of file configDialog.py.

Definition at line 1600 of file __init__.py.

Definition at line 334 of file configDialog.py.

Definition at line 59 of file configDialog.py.

Definition at line 1606 of file __init__.py.

tkinter.Misc.propagate = pack_propagate [static, inherited]

Definition at line 1222 of file __init__.py.

tkinter.Wm.protocol = wm_protocol [static, inherited]

Definition at line 1617 of file __init__.py.

Definition at line 221 of file configDialog.py.

Definition at line 219 of file configDialog.py.

Definition at line 293 of file configDialog.py.

Definition at line 295 of file configDialog.py.

Definition at line 228 of file configDialog.py.

Definition at line 230 of file configDialog.py.

tkinter.Misc.register = _register [static, inherited]

Definition at line 1095 of file __init__.py.

tkinter.Wm.resizable = wm_resizable [static, inherited]

Definition at line 1622 of file __init__.py.

Definition at line 1327 of file __init__.py.

Definition at line 148 of file configDialog.py.

tkinter.Misc.size = grid_size [static, inherited]

Definition at line 1332 of file __init__.py.

tkinter.Wm.sizefrom = wm_sizefrom [static, inherited]

Definition at line 1628 of file __init__.py.

tkinter.Misc.slaves = pack_slaves [static, inherited]

Definition at line 1229 of file __init__.py.

Definition at line 114 of file configDialog.py.

Definition at line 335 of file configDialog.py.

tkinter.Wm.state = wm_state [static, inherited]

Definition at line 1633 of file __init__.py.

Definition at line 72 of file configDialog.py.

widget creation body frame

Definition at line 189 of file configDialog.py.

Definition at line 39 of file configDialog.py.

Definition at line 178 of file configDialog.py.

tkinter.Wm.title = wm_title [static, inherited]

Definition at line 1637 of file __init__.py.

tkinter.BaseWidget.tk [inherited]

Definition at line 1929 of file __init__.py.

tkinter.Wm.transient = wm_transient [static, inherited]

Definition at line 1642 of file __init__.py.

Definition at line 338 of file configDialog.py.

Definition at line 1032 of file configDialog.py.

tkinter.Misc.waitvar = wait_variable [static, inherited]

Definition at line 389 of file __init__.py.

Reimplemented in tkinter.OptionMenu, tkinter.tix.TixWidget, and tkinter.dialog.Dialog.

Definition at line 1950 of file __init__.py.

Definition at line 333 of file configDialog.py.

Definition at line 332 of file configDialog.py.

tkinter.Wm.withdraw = wm_withdraw [static, inherited]

Definition at line 1647 of file __init__.py.


The documentation for this class was generated from the following file: