phoenix_title wx.lib.agw.aui.dockart.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 (https://sourceforge.net/projects/pywin32/).


class_hierarchy Class Hierarchy

Inheritance diagram for class ModernDockArt:

super_classes Known Superclasses

wx.lib.agw.aui.dockart.AuiDefaultDockArt


method_summary Methods Summary

__init__

Default class constructor.

DrawCaption

Draws the text in the pane caption.

DrawCaptionBackground

Draws the text caption background in the pane.

DrawPaneButton

Draws a pane button in the pane caption area.

Init

Initializes the dock art.

RequestUserAttention

Requests the user attention by intermittently highlighting the pane caption.


api Class API

class ModernDockArt(AuiDefaultDockArt)

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 (https://sourceforge.net/projects/pywin32/).


Methods

__init__(self, win)

Default class constructor.

Parameters:

win (wx.Window) – the window managed by AuiManager.



DrawCaption(self, dc, window, text, rect, pane)

Draws the text in the pane caption.

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

  • window – an instance of wx.Window;

  • text (string) – the text to be displayed;

  • rect (wx.Rect) – the pane caption rectangle;

  • pane – the pane for which the text is drawn.



DrawCaptionBackground(self, dc, rect, pane)

Draws the text caption background in the pane.

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

  • rect (wx.Rect) – the text caption rectangle;

  • pane – the pane for which we are drawing the caption background.



DrawPaneButton(self, dc, window, button, button_state, rect, pane)

Draws a pane button in the pane caption area.

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

  • window – an instance of wx.Window;

  • button (integer) – the button to be drawn;

  • button_state (integer) – the pane button state;

  • rect (wx.Rect) – the pane caption rectangle;

  • pane – the pane for which the button is drawn.



Init(self)

Initializes the dock art.



RequestUserAttention(self, dc, window, text, rect, pane)

Requests the user attention by intermittently highlighting the pane caption.

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

  • window – an instance of wx.Window;

  • text (string) – the text to be displayed;

  • rect (wx.Rect) – the pane caption rectangle;

  • pane – the pane for which the text is drawn.