~ubuntu-branches/ubuntu/raring/wxwidgets2.8/raring

« back to all changes in this revision

Viewing changes to wxPython/wx/tools/Editra/src/extern/aui/dockart.py

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-01-07 13:59:25 UTC
  • mfrom: (1.1.9) (5.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120107135925-2601miy9ullcon9j
Tags: 2.8.12.1-6ubuntu1
* Resync from Debian, changes that were kept:
  - debian/rules: re-enable mediactrl. This allows libwx_gtk2u_media-2.8 to be
    built, as this is required by some applications (LP: #632984)
  - debian/control: Build-dep on libxt-dev for mediactrl.
  - Patches
    + fix-bashism-in-example
* Add conflict on python-wxgtk2.8 (<< 2.8.12.1-6ubuntu1~) to python-wxversion
  to guarantee upgrade ordering when moving from pycentral to dh_python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
    ``AUI_BUTTON_MINIMIZE``                       Shows a minimize button on the pane
121
121
    ``AUI_BUTTON_PIN``                            Shows a pin button on the pane
122
122
    ``AUI_BUTTON_OPTIONS``                        Shows an option button on the pane (not implemented)
123
 
    ``AUI_BUTTON_WINDOWLIST``                     Shows a window list button on the pane (for AuiNotebook)
124
 
    ``AUI_BUTTON_LEFT``                           Shows a left button on the pane (for AuiNotebook)
125
 
    ``AUI_BUTTON_RIGHT``                          Shows a right button on the pane (for AuiNotebook)
 
123
    ``AUI_BUTTON_WINDOWLIST``                     Shows a window list button on the pane (for L{AuiNotebook})
 
124
    ``AUI_BUTTON_LEFT``                           Shows a left button on the pane (for L{AuiNotebook})
 
125
    ``AUI_BUTTON_RIGHT``                          Shows a right button on the pane (for L{AuiNotebook})
126
126
    ``AUI_BUTTON_UP``                             Shows an up button on the pane (not implemented)
127
127
    ``AUI_BUTTON_DOWN``                           Shows a down button on the pane (not implemented)
128
128
    ``AUI_BUTTON_CUSTOM1``                        Shows a custom button on the pane (not implemented)
419
419
            dc.SetBrush(wx.WHITE_BRUSH)
420
420
            dc.DrawRectangle(rect.x, rect.y, rect.width, rect.height)
421
421
 
422
 
        DrawGradientRectangle(dc, rect, self._background_colour,
 
422
        DrawGradientRectangle(dc, rect, self._background_brush.GetColour(),
423
423
                              self._background_gradient_colour,
424
424
                              AUI_GRADIENT_HORIZONTAL, rect.x, 700)
425
425
 
897
897
 
898
898
    Is uses the `winxptheme` module and XP themes whenever possible, so it should
899
899
    look good even if the user has a custom theme.
 
900
 
 
901
    :note: This dock art is Windows only and will only work if you have installed
 
902
     Mark Hammond's `pywin32` module (http://sourceforge.net/projects/pywin32/).
900
903
    """
901
904
 
902
905
    def __init__(self, win):
1021
1024
 
1022
1025
            rc = RECT(rectangle.x, rectangle.y, rectangle.width, rectangle.height)
1023
1026
 
 
1027
            # If rect x/y values are negative rc.right/bottom values will overflow and winxptheme.DrawThemeBackground
 
1028
            # will raise a TypeError. Ensure they are never negative.
 
1029
            rect.x = max(0, rect.x)
 
1030
            rect.y = max(0, rect.y)
 
1031
 
1024
1032
            rc.top = rect.x
1025
1033
            rc.left = rect.y
1026
1034
            rc.right = rect.x + rect.width