Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
tkinter.simpledialog._QueryFloat Class Reference
Inheritance diagram for tkinter.simpledialog._QueryFloat:
Inheritance graph
[legend]
Collaboration diagram for tkinter.simpledialog._QueryFloat:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getresult
def destroy
def body
def validate
def buttonbox
def ok
def cancel
def apply
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

 prompt
 minvalue
 maxvalue
 initialvalue
 entry
 result
 parent
 initial_focus
 master
 tk
 children
 widgetName

Static Public Attributes

string errormessage = "Not a floating point value."
 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 344 of file simpledialog.py.


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
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:

def tkinter.simpledialog.Dialog.apply (   self) [inherited]
process the data

This method is called automatically to process the data, *after*
the dialog is destroyed. By default, it does nothing.

Definition at line 242 of file simpledialog.py.

00242 
00243     def apply(self):
00244         '''process the data
00245 
00246         This method is called automatically to process the data, *after*
00247         the dialog is destroyed. By default, it does nothing.
00248         '''
00249 
00250         pass # override
00251 
00252 
00253 # --------------------------------------------------------------------
00254 # convenience dialogues

Here is the caller 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)
def tkinter.simpledialog._QueryDialog.body (   self,
  master 
) [inherited]
create dialog body.

return widget that should have initial focus.
This method should be overridden, and is called
by the __init__ method.

Reimplemented from tkinter.simpledialog.Dialog.

Reimplemented in tkinter.simpledialog._QueryString.

Definition at line 277 of file simpledialog.py.

00277 
00278     def body(self, master):
00279 
00280         w = Label(master, text=self.prompt, justify=LEFT)
00281         w.grid(row=0, padx=5, sticky=W)
00282 
00283         self.entry = Entry(master, name="entry")
00284         self.entry.grid(row=1, padx=5, sticky=W+E)
00285 
00286         if self.initialvalue:
00287             self.entry.insert(0, self.initialvalue)
00288             self.entry.select_range(0, END)
00289 
00290         return self.entry

def tkinter.simpledialog.Dialog.buttonbox (   self) [inherited]
add standard button box.

override if you do not want the standard buttons

Definition at line 188 of file simpledialog.py.

00188 
00189     def buttonbox(self):
00190         '''add standard button box.
00191 
00192         override if you do not want the standard buttons
00193         '''
00194 
00195         box = Frame(self)
00196 
00197         w = Button(box, text="OK", width=10, command=self.ok, default=ACTIVE)
00198         w.pack(side=LEFT, padx=5, pady=5)
00199         w = Button(box, text="Cancel", width=10, command=self.cancel)
00200         w.pack(side=LEFT, padx=5, pady=5)
00201 
00202         self.bind("<Return>", self.ok)
00203         self.bind("<Escape>", self.cancel)
00204 
00205         box.pack()

Here is the call graph for this function:

def tkinter.simpledialog.Dialog.cancel (   self,
  event = None 
) [inherited]

Definition at line 223 of file simpledialog.py.

00223 
00224     def cancel(self, event=None):
00225 
00226         # put focus back to the parent window
00227         if self.parent is not None:
00228             self.parent.focus_set()
00229         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 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:

def tkinter.simpledialog._QueryDialog.destroy (   self) [inherited]
Destroy the window

Reimplemented from tkinter.simpledialog.Dialog.

Definition at line 273 of file simpledialog.py.

00273 
00274     def destroy(self):
00275         self.entry = None
00276         Dialog.destroy(self)

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 346 of file simpledialog.py.

00346 
00347     def getresult(self):
00348         return float(self.entry.get())

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))]

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 

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'))]
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:

def tkinter.simpledialog.Dialog.ok (   self,
  event = None 
) [inherited]

Definition at line 209 of file simpledialog.py.

00209 
00210     def ok(self, event=None):
00211 
00212         if not self.validate():
00213             self.initial_focus.focus_set() # put focus back
00214             return
00215 
00216         self.withdraw()
00217         self.update_idletasks()
00218 
00219         try:
00220             self.apply()
00221         finally:
00222             self.cancel()

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))]
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:

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:

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:

def tkinter.simpledialog._QueryDialog.validate (   self) [inherited]
validate the data

This method is called automatically to validate the data before the
dialog is destroyed. By default, it always validates OK.

Reimplemented from tkinter.simpledialog.Dialog.

Definition at line 291 of file simpledialog.py.

00291 
00292     def validate(self):
00293         try:
00294             result = self.getresult()
00295         except ValueError:
00296             messagebox.showwarning(
00297                 "Illegal value",
00298                 self.errormessage + "\nPlease try again",
00299                 parent = self
00300             )
00301             return 0
00302 
00303         if self.minvalue is not None and result < self.minvalue:
00304             messagebox.showwarning(
00305                 "Too small",
00306                 "The allowed minimum value is %s. "
00307                 "Please try again." % self.minvalue,
00308                 parent = self
00309             )
00310             return 0
00311 
00312         if self.maxvalue is not None and result > self.maxvalue:
00313             messagebox.showwarning(
00314                 "Too large",
00315                 "The allowed maximum value is %s. "
00316                 "Please try again." % self.maxvalue,
00317                 parent = self
00318             )
00319             return 0
00320 
00321         self.result = result
00322 
00323         return 1
00324 

Here is the call 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.

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

Definition at line 1258 of file __init__.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 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.

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

Definition at line 1509 of file __init__.py.

Definition at line 274 of file simpledialog.py.

Definition at line 345 of file simpledialog.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.

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

Definition at line 1519 of file __init__.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.

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 148 of file simpledialog.py.

Definition at line 269 of file simpledialog.py.

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

Reimplemented in tkinter.Canvas.

Definition at line 661 of file __init__.py.

Definition at line 1928 of file __init__.py.

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

Definition at line 1586 of file __init__.py.

Definition at line 267 of file simpledialog.py.

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

Definition at line 1593 of file __init__.py.

Definition at line 266 of file simpledialog.py.

Definition at line 1600 of file __init__.py.

Definition at line 143 of file simpledialog.py.

Definition at line 1606 of file __init__.py.

Definition at line 265 of file simpledialog.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.

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.

Reimplemented from tkinter.simpledialog.Dialog.

Definition at line 320 of file simpledialog.py.

Definition at line 1327 of file __init__.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.

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

Definition at line 1633 of file __init__.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.

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.

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: