Back to index

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

List of all members.

Public Member Functions

def __init__
def destroy
def __getattr__
def set_silent
def subwidget
def subwidgets_all
def config_all
def image_create
def image_delete
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 pack_configure
def pack_forget
def pack_info
def place_configure
def place_forget
def place_info
def grid_configure
def grid_forget
def grid_remove
def grid_info

Public Attributes

 destroy_physically
 widgetName
 subwidget_list
 master
 tk
 children

Static Public Attributes

 waitvar = wait_variable
 getint = int
 getdouble = float
 focus = focus_set
 lift = tkraise
 register = _register
 config = configure
 propagate = pack_propagate
 propagate = pack_propagateMisc.pack_propagate
 propagate = grid_propagateMisc.grid_propagate
 slaves = pack_slaves
 slaves = pack_slavesMisc.pack_slaves
 slaves = place_slavesMisc.place_slaves
 slaves = grid_slavesMisc.grid_slaves
 bbox = grid_bbox
 bbox = grid_bboxMisc.grid_bbox
 columnconfigure = grid_columnconfigure
 columnconfigure = grid_columnconfigureMisc.grid_columnconfigure
 rowconfigure = grid_rowconfigure
 rowconfigure = grid_rowconfigureMisc.grid_rowconfigure
 size = grid_size
 size = grid_sizeMisc.grid_size
 pack = configureconfigpack_configure
 forget = pack_forget
 forget = place_forget
 forget = grid_forget
 info = pack_info
 info = place_info
 info = grid_info
 place = configureconfigplace_configure
 grid = configureconfiggrid_configure
 location = grid_locationMisc.grid_location

Detailed Description

Subwidget class.

This is used to mirror child widgets automatically created
by Tix/Tk as part of a mega-widget in Python (which is not informed
of this)

Definition at line 422 of file tix.py.


Constructor & Destructor Documentation

def tkinter.tix.TixSubWidget.__init__ (   self,
  master,
  name,
  destroy_physically = 1,
  check_intermediate = 1 
)

Definition at line 430 of file tix.py.

00430 
00431                destroy_physically=1, check_intermediate=1):
00432         if check_intermediate:
00433             path = master._subwidget_name(name)
00434             try:
00435                 path = path[len(master._w)+1:]
00436                 plist = path.split('.')
00437             except:
00438                 plist = []
00439 
00440         if not check_intermediate:
00441             # immediate descendant
00442             TixWidget.__init__(self, master, None, None, {'name' : name})
00443         else:
00444             # Ensure that the intermediate widgets exist
00445             parent = master
00446             for i in range(len(plist) - 1):
00447                 n = '.'.join(plist[:i+1])
00448                 try:
00449                     w = master._nametowidget(n)
00450                     parent = w
00451                 except KeyError:
00452                     # Create the intermediate widget
00453                     parent = TixSubWidget(parent, plist[i],
00454                                           destroy_physically=0,
00455                                           check_intermediate=0)
00456             # The Tk widget name is in plist, not in name
00457             if plist:
00458                 name = plist[-1]
00459             TixWidget.__init__(self, parent, None, None, {'name' : name})
00460         self.destroy_physically = destroy_physically

Here is the caller graph for this function:


Member Function Documentation

def tkinter.tix.TixWidget.__getattr__ (   self,
  name 
) [inherited]

Definition at line 338 of file tix.py.

00338 
00339     def __getattr__(self, name):
00340         if name in self.subwidget_list:
00341             return self.subwidget_list[name]
00342         raise AttributeError(name)

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.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.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.tix.TixWidget.config_all (   self,
  option,
  value 
) [inherited]
Set configuration options for all subwidgets (and self).

Definition at line 387 of file tix.py.

00387 
00388     def config_all(self, option, value):
00389         """Set configuration options for all subwidgets (and self)."""
00390         if option == '':
00391             return
00392         elif not isinstance(option, StringType):
00393             option = repr(option)
00394         if not isinstance(value, StringType):
00395             value = repr(value)
00396         names = self._subwidget_names()
00397         for name in names:
            self.tk.call(name, 'configure', '-' + option, value)

Here is the call graph for this function:

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:

Destroy this and all descendants widgets.

Reimplemented from tkinter.BaseWidget.

Definition at line 461 of file tix.py.

00461 
00462     def destroy(self):
00463         # For some widgets e.g., a NoteBook, when we call destructors,
00464         # we must be careful not to destroy the frame widget since this
00465         # also destroys the parent NoteBook thus leading to an exception
00466         # in Tkinter when it finally calls Tcl to destroy the NoteBook
00467         for c in list(self.children.values()): c.destroy()
00468         if self._name in self.master.children:
00469             del self.master.children[self._name]
00470         if self._name in self.master.subwidget_list:
00471             del self.master.subwidget_list[self._name]
00472         if self.destroy_physically:
00473             # This is bypassed only for a few widgets
00474             self.tk.call('destroy', self._w)
00475 
00476 
# Useful func. to split Tcl lists and return as a dict. From Tkinter.py
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:

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.Grid.grid_configure (   self,
  cnf = {},
  kw 
) [inherited]
Position a widget in the parent widget in a grid. Use as options:
column=number - use cell identified with given column (starting with 0)
columnspan=number - this widget will span several columns
in=master - use master to contain this widget
in_=master - see 'in' option description
ipadx=amount - add internal padding in x direction
ipady=amount - add internal padding in y direction
padx=amount - add padding in x direction
pady=amount - add padding in y direction
row=number - use cell identified with given row (starting with 0)
rowspan=number - this widget will span several rows
sticky=NSEW - if cell is larger on which sides will this
      widget stick to the cell boundary

Definition at line 1870 of file __init__.py.

01870 
01871     def grid_configure(self, cnf={}, **kw):
01872         """Position a widget in the parent widget in a grid. Use as options:
01873         column=number - use cell identified with given column (starting with 0)
01874         columnspan=number - this widget will span several columns
01875         in=master - use master to contain this widget
01876         in_=master - see 'in' option description
01877         ipadx=amount - add internal padding in x direction
01878         ipady=amount - add internal padding in y direction
01879         padx=amount - add padding in x direction
01880         pady=amount - add padding in y direction
01881         row=number - use cell identified with given row (starting with 0)
01882         rowspan=number - this widget will span several rows
01883         sticky=NSEW - if cell is larger on which sides will this
01884                       widget stick to the cell boundary
01885         """
01886         self.tk.call(
01887               ('grid', 'configure', self._w)
              + self._options(cnf, kw))

Here is the call graph for this function:

def tkinter.Grid.grid_forget (   self) [inherited]
Unmap this widget.

Definition at line 1891 of file __init__.py.

01891 
01892     def grid_forget(self):
01893         """Unmap this widget."""
        self.tk.call('grid', 'forget', self._w)
def tkinter.Grid.grid_info (   self) [inherited]
Return information about the options
for positioning this widget in a grid.

Definition at line 1898 of file __init__.py.

01898 
01899     def grid_info(self):
01900         """Return information about the options
01901         for positioning this widget in a grid."""
01902         words = self.tk.splitlist(
01903             self.tk.call('grid', 'info', self._w))
01904         dict = {}
01905         for i in range(0, len(words), 2):
01906             key = words[i][1:]
01907             value = words[i+1]
01908             if value[:1] == '.':
01909                 value = self._nametowidget(value)
01910             dict[key] = value
        return dict
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.Grid.grid_remove (   self) [inherited]
Unmap this widget but remember the grid options.

Definition at line 1895 of file __init__.py.

01895 
01896     def grid_remove(self):
01897         """Unmap this widget but remember the grid options."""
        self.tk.call('grid', 'remove', self._w)
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.tix.TixWidget.image_create (   self,
  imgtype,
  cnf = {},
  master = None,
  kw 
) [inherited]

Definition at line 399 of file tix.py.

00399 
00400     def image_create(self, imgtype, cnf={}, master=None, **kw):
00401         if not master:
00402             master = tkinter._default_root
00403             if not master:
00404                 raise RuntimeError('Too early to create image')
00405         if kw and cnf: cnf = _cnfmerge((cnf, kw))
00406         elif kw: cnf = kw
00407         options = ()
00408         for k, v in cnf.items():
00409             if hasattr(v, '__call__'):
00410                 v = self._register(v)
00411             options = options + ('-'+k, v)
        return master.tk.call(('image', 'create', imgtype,) + options)

Here is the call graph for this function:

def tkinter.tix.TixWidget.image_delete (   self,
  imgname 
) [inherited]

Definition at line 412 of file tix.py.

00412 
00413     def image_delete(self, imgname):
00414         try:
00415             self.tk.call('image', 'delete', imgname)
00416         except TclError:
00417             # May happen if the root was destroyed
00418             pass
00419 
00420 # Subwidgets are child widgets created automatically by mega-widgets.
00421 # In python, we have to create these subwidgets manually to mirror their
# existence in Tk/Tix.
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.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.Pack.pack_configure (   self,
  cnf = {},
  kw 
) [inherited]
Pack a widget in the parent widget. Use as options:
after=widget - pack it after you have packed widget
anchor=NSEW (or subset) - position widget according to
                  given direction
before=widget - pack it before you will pack widget
expand=bool - expand widget if parent size grows
fill=NONE or X or Y or BOTH - fill widget if widget grows
in=master - use master to contain this widget
in_=master - see 'in' option description
ipadx=amount - add internal padding in x direction
ipady=amount - add internal padding in y direction
padx=amount - add padding in x direction
pady=amount - add padding in y direction
side=TOP or BOTTOM or LEFT or RIGHT -  where to add this widget.

Definition at line 1774 of file __init__.py.

01774 
01775     def pack_configure(self, cnf={}, **kw):
01776         """Pack a widget in the parent widget. Use as options:
01777         after=widget - pack it after you have packed widget
01778         anchor=NSEW (or subset) - position widget according to
01779                                   given direction
01780         before=widget - pack it before you will pack widget
01781         expand=bool - expand widget if parent size grows
01782         fill=NONE or X or Y or BOTH - fill widget if widget grows
01783         in=master - use master to contain this widget
01784         in_=master - see 'in' option description
01785         ipadx=amount - add internal padding in x direction
01786         ipady=amount - add internal padding in y direction
01787         padx=amount - add padding in x direction
01788         pady=amount - add padding in y direction
01789         side=TOP or BOTTOM or LEFT or RIGHT -  where to add this widget.
01790         """
01791         self.tk.call(
01792               ('pack', 'configure', self._w)
              + self._options(cnf, kw))

Here is the call graph for this function:

def tkinter.Pack.pack_forget (   self) [inherited]
Unmap this widget and do not use it for the packing order.

Definition at line 1794 of file __init__.py.

01794 
01795     def pack_forget(self):
01796         """Unmap this widget and do not use it for the packing order."""
        self.tk.call('pack', 'forget', self._w)
def tkinter.Pack.pack_info (   self) [inherited]
Return information about the packing options
for this widget.

Definition at line 1798 of file __init__.py.

01798 
01799     def pack_info(self):
01800         """Return information about the packing options
01801         for this widget."""
01802         words = self.tk.splitlist(
01803             self.tk.call('pack', 'info', self._w))
01804         dict = {}
01805         for i in range(0, len(words), 2):
01806             key = words[i][1:]
01807             value = words[i+1]
01808             if value[:1] == '.':
01809                 value = self._nametowidget(value)
01810             dict[key] = value
        return dict
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.Place.place_configure (   self,
  cnf = {},
  kw 
) [inherited]
Place a widget in the parent widget. Use as options:
in=master - master relative to which the widget is placed
in_=master - see 'in' option description
x=amount - locate anchor of this widget at position x of master
y=amount - locate anchor of this widget at position y of master
relx=amount - locate anchor of this widget between 0.0 and 1.0
      relative to width of master (1.0 is right edge)
rely=amount - locate anchor of this widget between 0.0 and 1.0
      relative to height of master (1.0 is bottom edge)
anchor=NSEW (or subset) - position anchor according to given direction
width=amount - width of this widget in pixel
height=amount - height of this widget in pixel
relwidth=amount - width of this widget between 0.0 and 1.0
          relative to width of master (1.0 is the same width
          as the master)
relheight=amount - height of this widget between 0.0 and 1.0
           relative to height of master (1.0 is the same
           height as the master)
bordermode="inside" or "outside" - whether to take border width of
                           master widget into account

Definition at line 1819 of file __init__.py.

01819 
01820     def place_configure(self, cnf={}, **kw):
01821         """Place a widget in the parent widget. Use as options:
01822         in=master - master relative to which the widget is placed
01823         in_=master - see 'in' option description
01824         x=amount - locate anchor of this widget at position x of master
01825         y=amount - locate anchor of this widget at position y of master
01826         relx=amount - locate anchor of this widget between 0.0 and 1.0
01827                       relative to width of master (1.0 is right edge)
01828         rely=amount - locate anchor of this widget between 0.0 and 1.0
01829                       relative to height of master (1.0 is bottom edge)
01830         anchor=NSEW (or subset) - position anchor according to given direction
01831         width=amount - width of this widget in pixel
01832         height=amount - height of this widget in pixel
01833         relwidth=amount - width of this widget between 0.0 and 1.0
01834                           relative to width of master (1.0 is the same width
01835                           as the master)
01836         relheight=amount - height of this widget between 0.0 and 1.0
01837                            relative to height of master (1.0 is the same
01838                            height as the master)
01839         bordermode="inside" or "outside" - whether to take border width of
01840                                            master widget into account
01841         """
01842         self.tk.call(
01843               ('place', 'configure', self._w)
              + self._options(cnf, kw))

Here is the call graph for this function:

def tkinter.Place.place_forget (   self) [inherited]
Unmap this widget.

Definition at line 1845 of file __init__.py.

01845 
01846     def place_forget(self):
01847         """Unmap this widget."""
        self.tk.call('place', 'forget', self._w)
def tkinter.Place.place_info (   self) [inherited]
Return information about the placing options
for this widget.

Definition at line 1849 of file __init__.py.

01849 
01850     def place_info(self):
01851         """Return information about the placing options
01852         for this widget."""
01853         words = self.tk.splitlist(
01854             self.tk.call('place', 'info', self._w))
01855         dict = {}
01856         for i in range(0, len(words), 2):
01857             key = words[i][1:]
01858             value = words[i+1]
01859             if value[:1] == '.':
01860                 value = self._nametowidget(value)
01861             dict[key] = value
        return dict
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.tix.TixWidget.set_silent (   self,
  value 
) [inherited]
Set a variable without calling its action routine

Definition at line 343 of file tix.py.

00343 
00344     def set_silent(self, value):
00345         """Set a variable without calling its action routine"""
00346         self.tk.call('tixSetSilent', self._w, value)

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.tix.TixWidget.subwidget (   self,
  name 
) [inherited]
Return the named subwidget (which must have been created by
the sub-class).

Definition at line 347 of file tix.py.

00347 
00348     def subwidget(self, name):
00349         """Return the named subwidget (which must have been created by
00350         the sub-class)."""
00351         n = self._subwidget_name(name)
00352         if not n:
00353             raise TclError("Subwidget " + name + " not child of " + self._name)
00354         # Remove header of name and leading dot
00355         n = n[len(self._w)+1:]
00356         return self._nametowidget(n)

Here is the call graph for this function:

Here is the caller graph for this function:

def tkinter.tix.TixWidget.subwidgets_all (   self) [inherited]
Return all subwidgets.

Definition at line 357 of file tix.py.

00357 
00358     def subwidgets_all(self):
00359         """Return all subwidgets."""
00360         names = self._subwidget_names()
00361         if not names:
00362             return []
00363         retlist = []
00364         for name in names:
00365             name = name[len(self._w)+1:]
00366             try:
00367                 retlist.append(self._nametowidget(name))
00368             except:
00369                 # some of the widgets are unknown e.g. border in LabelFrame
00370                 pass
00371         return retlist

Here is the call graph for this function:

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

Member Data Documentation

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

Definition at line 1258 of file __init__.py.

tkinter.Grid.bbox = grid_bboxMisc.grid_bbox [static, inherited]

Definition at line 1889 of file __init__.py.

Definition at line 1941 of file __init__.py.

Definition at line 1300 of file __init__.py.

tkinter.Grid.columnconfigure = grid_columnconfigureMisc.grid_columnconfigure [static, inherited]

Definition at line 1890 of file __init__.py.

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

Definition at line 1194 of file __init__.py.

Definition at line 459 of file tix.py.

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

Definition at line 423 of file __init__.py.

tkinter.Pack.forget = pack_forget [static, inherited]

Reimplemented in tkinter.ttk.Panedwindow.

Definition at line 1797 of file __init__.py.

tkinter.Place.forget = place_forget [static, inherited]

Reimplemented in tkinter.ttk.Panedwindow.

Definition at line 1848 of file __init__.py.

tkinter.Grid.forget = grid_forget [static, inherited]

Reimplemented in tkinter.ttk.Panedwindow.

Definition at line 1894 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.Grid.grid = configureconfiggrid_configure [static, inherited]

Definition at line 1888 of file __init__.py.

tkinter.Pack.info = pack_info [static, inherited]

Definition at line 1811 of file __init__.py.

tkinter.Place.info = place_info [static, inherited]

Definition at line 1862 of file __init__.py.

tkinter.Grid.info = grid_info [static, inherited]

Definition at line 1911 of file __init__.py.

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

Reimplemented in tkinter.Canvas.

Definition at line 661 of file __init__.py.

tkinter.Grid.location = grid_locationMisc.grid_location [static, inherited]

Definition at line 1912 of file __init__.py.

Definition at line 1928 of file __init__.py.

tkinter.Pack.pack = configureconfigpack_configure [static, inherited]

Definition at line 1793 of file __init__.py.

tkinter.Place.place = configureconfigplace_configure [static, inherited]

Definition at line 1844 of file __init__.py.

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

Definition at line 1222 of file __init__.py.

tkinter.Pack.propagate = pack_propagateMisc.pack_propagate [static, inherited]

Definition at line 1812 of file __init__.py.

tkinter.Grid.propagate = grid_propagateMisc.grid_propagate [static, inherited]

Definition at line 1913 of file __init__.py.

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

Definition at line 1095 of file __init__.py.

Definition at line 1327 of file __init__.py.

tkinter.Grid.rowconfigure = grid_rowconfigureMisc.grid_rowconfigure [static, inherited]

Definition at line 1914 of file __init__.py.

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

Definition at line 1332 of file __init__.py.

tkinter.Grid.size = grid_sizeMisc.grid_size [static, inherited]

Definition at line 1915 of file __init__.py.

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

Definition at line 1229 of file __init__.py.

tkinter.Pack.slaves = pack_slavesMisc.pack_slaves [static, inherited]

Definition at line 1813 of file __init__.py.

tkinter.Place.slaves = place_slavesMisc.place_slaves [static, inherited]

Definition at line 1863 of file __init__.py.

tkinter.Grid.slaves = grid_slavesMisc.grid_slaves [static, inherited]

Definition at line 1916 of file __init__.py.

Definition at line 331 of file tix.py.

tkinter.BaseWidget.tk [inherited]

Definition at line 1929 of file __init__.py.

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

Definition at line 389 of file __init__.py.

Reimplemented from tkinter.BaseWidget.

Definition at line 316 of file tix.py.


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