Back to index

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

List of all members.

Public Member Functions

def __init__
def __str__
def __setitem__
def __getitem__
def configure
def height
def type
def width

Public Attributes

 name
 tk

Static Public Attributes

 config = configure

Detailed Description

Widget which can display a bitmap.

Definition at line 3281 of file __init__.py.


Constructor & Destructor Documentation

def tkinter.BitmapImage.__init__ (   self,
  name = None,
  cnf = {},
  master = None,
  kw 
)
Create a bitmap with NAME.

Valid resource names: background, data, file, foreground, maskdata, maskfile.

Definition at line 3283 of file __init__.py.

03283 
03284     def __init__(self, name=None, cnf={}, master=None, **kw):
03285         """Create a bitmap with NAME.
03286 
03287         Valid resource names: background, data, file, foreground, maskdata, maskfile."""
03288         Image.__init__(self, 'bitmap', name, cnf, master, **kw)

Here is the caller graph for this function:


Member Function Documentation

def tkinter.Image.__getitem__ (   self,
  key 
) [inherited]

Reimplemented in tkinter.PhotoImage.

Definition at line 3196 of file __init__.py.

03196 
03197     def __getitem__(self, key):
        return self.tk.call(self.name, 'configure', '-'+key)
def tkinter.Image.__setitem__ (   self,
  key,
  value 
) [inherited]

Definition at line 3194 of file __init__.py.

03194 
03195     def __setitem__(self, key, value):
        self.tk.call(self.name, 'configure', '-'+key, value)
def tkinter.Image.__str__ (   self) [inherited]

Definition at line 3186 of file __init__.py.

03186 
    def __str__(self): return self.name
def tkinter.Image.configure (   self,
  kw 
) [inherited]
Configure the image.

Definition at line 3198 of file __init__.py.

03198 
03199     def configure(self, **kw):
03200         """Configure the image."""
03201         res = ()
03202         for k, v in _cnfmerge(kw).items():
03203             if v is not None:
03204                 if k[-1] == '_': k = k[:-1]
03205                 if hasattr(v, '__call__'):
03206                     v = self._register(v)
03207                 res = res + ('-'+k, v)
        self.tk.call((self.name, 'config') + res)

Here is the call graph for this function:

def tkinter.Image.height (   self) [inherited]
Return the height of the image.

Definition at line 3209 of file __init__.py.

03209 
03210     def height(self):
03211         """Return the height of the image."""
03212         return getint(
            self.tk.call('image', 'height', self.name))
def tkinter.Image.type (   self) [inherited]
Return the type of the imgage, e.g. "photo" or "bitmap".

Definition at line 3213 of file __init__.py.

03213 
03214     def type(self):
03215         """Return the type of the imgage, e.g. "photo" or "bitmap"."""
        return self.tk.call('image', 'type', self.name)

Here is the caller graph for this function:

def tkinter.Image.width (   self) [inherited]
Return the width of the image.

Definition at line 3216 of file __init__.py.

03216 
03217     def width(self):
03218         """Return the width of the image."""
03219         return getint(
03220             self.tk.call('image', 'width', self.name))


Member Data Documentation

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

Definition at line 3208 of file __init__.py.

tkinter.Image.name [inherited]

Definition at line 3165 of file __init__.py.

tkinter.Image.tk [inherited]

Definition at line 3170 of file __init__.py.


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