Lines Matching defs:Image
1446 # Image related commands
1449 """Return a list of all existing image names."""
1450 return self.tk.call('image', 'names')
1453 """Return a list of all available image types (e.g. phote bitmap)."""
1454 return self.tk.call('image', 'types')
2096 highlightthickness, image, justify,
2259 """Create image item with coordinates x1,y1."""
2260 return self._create('image', args, kw)
2413 highlightbackground, highlightcolor, highlightthickness, image,
2528 highlightthickness, image, justify,
2772 highlightbackground, highlightcolor, highlightthickness, image,
2925 parameters; if 'all', 'image', 'mark', 'tag', 'text', or 'window' are
3023 # (Image commands are new in 8.0)
3025 """Return the value of OPTION of an embedded image at INDEX."""
3030 return self.tk.call(self._w, "image", "cget", index, option)
3032 """Configure an embedded image at INDEX."""
3033 return self._configure(('image', 'configure', index), cnf, kw)
3035 """Create an embedded image at INDEX."""
3037 self._w, "image", "create", index,
3041 return self.tk.call(self._w, "image", "names")
3239 class Image:
3247 raise RuntimeError, 'Too early to create image'
3250 Image._last_id += 1
3251 name = "pyimage%r" % (Image._last_id,) # tk itself would use image<x>
3262 self.tk.call(('image', 'create', imgtype, name,) + options)
3268 self.tk.call('image', 'delete', self.name)
3277 """Configure the image."""
3288 """Return the height of the image."""
3290 self.tk.call('image', 'height', self.name))
3293 return self.tk.call('image', 'type', self.name)
3295 """Return the width of the image."""
3297 self.tk.call('image', 'width', self.name))
3299 class PhotoImage(Image):
3302 """Create an image with NAME.
3306 Image.__init__(self, 'photo', name, cnf, master, **kw)
3308 """Display a transparent image."""
3318 """Return a new PhotoImage with the same image as this widget."""
3323 """Return a new PhotoImage with the same image as this widget
3330 """Return a new PhotoImage based on the same image as this widget
3340 """Put row formatted colors to image starting from
3341 position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))"""
3350 """Write image to file FILENAME in FORMAT starting from
3359 class BitmapImage(Image):
3365 Image.__init__(self, 'bitmap', name, cnf, master, **kw)
3367 def image_names(): return _default_root.tk.call('image', 'names')
3368 def image_types(): return _default_root.tk.call('image', 'types')