Changeset 367

Show
Ignore:
Timestamp:
09/10/07 16:19:04 (1 year ago)
Author:
bjourne
Message:

Update the todo items. Correct the names of the IMAGE_TRANSP_*
constants.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pygtkimageview/docs/gtkimageview.py

    r358 r367  
    5454:license: LGPL 
    5555:copyright: |copy| 2007 Björn Lindqvist 
    56 :todo: Make pieces of the API more Pythonic 
    57 :todo: Make the C-classes support constructor properties so that they 
    58     correctly can be subclassed. 
     56:todo: Figure out how to best handle the DrawSettings struct 
    5957 
    6058.. |copy| unicode:: 0xA9 .. copyright sign 
     
    6260 
    6361#: Enumeration value to use a single color for transparent parts. 
    64 IMAGE_TRANSP_COLOR = 1 
     62TRANSP_COLOR = 1 
    6563#: Enumeration value to use a light and dark gray grid for transparent 
    6664#: parts. 
    67 IMAGE_TRANSP_GRID = 2 
     65TRANSP_GRID = 2 
    6866#: Enumeration value to use the widgets background color for 
    6967#: transparent parts. 
    70 IMAGE_TRANSP_BACKGROUND = 3 
     68TRANSP_BACKGROUND = 3 
    7169 
    7270class IImageTool: 
     
    478476        * show cursor : ``True`` 
    479477        * show frame : ``True`` 
    480         * transp : `IMAGE_TRANSP_GRID` 
     478        * transp : `TRANSP_GRID` 
    481479        ''' 
    482480     
     
    567565        Returns a tuple with the two colors used to draw transparent 
    568566        parts of images with an alpha channel. Note that if the 
    569         transparency setting of the view is `IMAGE_TRANSP_BACKGROUND` 
    570         or `IMAGE_TRANSP_COLOR`, then both colors will be equal. 
     567        transparency setting of the view is `TRANSP_BACKGROUND` 
     568        or `TRANSP_COLOR`, then both colors will be equal. 
    571569 
    572570            >>> view.get_check_colors() 
     
    612610        ''' 
    613611        Sets how the view should draw transparent parts of images with 
    614         an alpha channel. If `transp` is `IMAGE_TRANSP_COLOR`, the 
     612        an alpha channel. If `transp` is `TRANSP_COLOR`, the 
    615613        specified `transp_color` will be used. Otherwise the 
    616614        `transp_color` argument is ignored. If it is 
    617         `IMAGE_TRANSP_BACKGROUND`, the background color of the widget 
    618         will be used. If it is `IMAGE_TRANSP_GRID`, then a grid with 
     615        `TRANSP_BACKGROUND`, the background color of the widget 
     616        will be used. If it is `TRANSP_GRID`, then a grid with 
    619617        light and dark gray boxes will be drawn on the transparent 
    620618        parts. 
     
    628626        The default values are: 
    629627 
    630         * transp : `IMAGE_TRANSP_GRID` 
     628        * transp : `TRANSP_GRID` 
    631629        * transp_color : ``0x000000`` 
    632630