Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Private Member Functions
tkinter.tix.DisplayStyle Class Reference

List of all members.

Public Member Functions

def __init__
def __str__
def delete
def __setitem__
def config
def __getitem__

Public Attributes

 tk
 stylename

Private Member Functions

def _options

Detailed Description

DisplayStyle - handle configuration options shared by
(multiple) Display Items

Definition at line 485 of file tix.py.


Constructor & Destructor Documentation

def tkinter.tix.DisplayStyle.__init__ (   self,
  itemtype,
  cnf = {},
  kw 
)

Definition at line 489 of file tix.py.

00489 
00490     def __init__(self, itemtype, cnf={}, **kw):
00491         master = _default_root              # global from Tkinter
00492         if not master and 'refwindow' in cnf: master=cnf['refwindow']
00493         elif not master and 'refwindow' in kw:  master= kw['refwindow']
00494         elif not master: raise RuntimeError("Too early to create display style: no root window")
00495         self.tk = master.tk
00496         self.stylename = self.tk.call('tixDisplayStyle', itemtype,
00497                             *self._options(cnf,kw) )

Here is the caller graph for this function:


Member Function Documentation

def tkinter.tix.DisplayStyle.__getitem__ (   self,
  key 
)

Definition at line 523 of file tix.py.

00523 
00524     def __getitem__(self,key):
00525         return self.tk.call(self.stylename, 'cget', '-%s'%key)
00526 

def tkinter.tix.DisplayStyle.__setitem__ (   self,
  key,
  value 
)

Definition at line 514 of file tix.py.

00514 
00515     def __setitem__(self,key,value):
00516         self.tk.call(self.stylename, 'configure', '-%s'%key, value)

Definition at line 498 of file tix.py.

00498 
00499     def __str__(self):
00500         return self.stylename

def tkinter.tix.DisplayStyle._options (   self,
  cnf,
  kw 
) [private]

Definition at line 501 of file tix.py.

00501 
00502     def _options(self, cnf, kw):
00503         if kw and cnf:
00504             cnf = _cnfmerge((cnf, kw))
00505         elif kw:
00506             cnf = kw
00507         opts = ()
00508         for k, v in cnf.items():
00509             opts = opts + ('-'+k, v)
00510         return opts

Here is the call graph for this function:

Here is the caller graph for this function:

def tkinter.tix.DisplayStyle.config (   self,
  cnf = {},
  kw 
)

Definition at line 517 of file tix.py.

00517 
00518     def config(self, cnf={}, **kw):
00519         return _lst2dict(
00520             self.tk.split(
00521             self.tk.call(
00522                   self.stylename, 'configure', *self._options(cnf,kw))))

Here is the call graph for this function:

Definition at line 511 of file tix.py.

00511 
00512     def delete(self):
00513         self.tk.call(self.stylename, 'delete')


Member Data Documentation

Definition at line 495 of file tix.py.

Definition at line 494 of file tix.py.


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