AGW Logo

agw_title ModernDockArt

ModernDockArt is a custom AuiDockArt class, that implements a look similar to Firefox and other recents applications.

Is uses the winxptheme module and XP themes whenever possible, so it should look good even if the user has a custom theme.

Note

This dock art is Windows only and will only work if you have installed Mark Hammond’s pywin32 module (http://sourceforge.net/projects/pywin32/).

hierarchy Inheritance Diagram

Inheritance diagram for: ModernDockArt

Inheritance diagram of ModernDockArt


supclasses Known Superclasses


method_summary Methods Summary

__init__Default class constructor.
DrawCaptionDraws the text in the pane caption.
DrawCaptionBackgroundDraws the text caption background in the pane.
DrawPaneButtonDraws a pane button in the pane caption area.
InitInitializes the dock art.
RequestUserAttentionRequests the user attention by intermittently highlighting the pane caption.

API Class API

class ModernDockArt(AuiDefaultDockArt)[source]

ModernDockArt is a custom AuiDockArt class, that implements a look similar to Firefox and other recents applications.

Is uses the winxptheme module and XP themes whenever possible, so it should look good even if the user has a custom theme.

Note

This dock art is Windows only and will only work if you have installed Mark Hammond’s pywin32 module (http://sourceforge.net/projects/pywin32/).



__init__(win)[source]

Default class constructor.

Parameters:win – the window managed by AuiManager.


DrawCaption(dc, window, text, rect, pane)[source]

Draws the text in the pane caption.

Parameters:
  • dc – a wx.DC device context;
  • window – an instance of wx.Window;
  • text – the text to be displayed;
  • rect – the pane caption rectangle;
  • pane – the pane for which the text is drawn.


DrawCaptionBackground(dc, rect, pane)[source]

Draws the text caption background in the pane.

Parameters:
  • dc – a wx.DC device context;

  • rect – the text caption rectangle;
  • pane – the pane for which we are drawing the caption background.


DrawPaneButton(dc, window, button, button_state, rect, pane)[source]

Draws a pane button in the pane caption area.

Parameters:
  • dc – a wx.DC device context;

  • window – an instance of wx.Window;

  • button – the button to be drawn;
  • button_state – the pane button state;
  • rect – the pane caption rectangle;
  • pane – the pane for which the button is drawn.


Init()[source]

Initializes the dock art.



RequestUserAttention(dc, window, text, rect, pane)[source]

Requests the user attention by intermittently highlighting the pane caption.

Parameters:
  • dc – a wx.DC device context;

  • window – an instance of wx.Window;

  • text – the text to be displayed;
  • rect – the pane caption rectangle;
  • pane – the pane for which the text is drawn.
Tree

Table Of Contents

Previous topic

AuiDefaultDockArt

Next topic

SVN Revision 69294 For dockart