AGW Logo

agw_title BalloonFrame

This class is called by the main BalloonTip class, and it is responsible for the frame creation/positioning on screen depending on target control/window, the frame can position itself to NW (default), NE, SW, SE. The switch on positioning is done by calculating the absolute position of the target control/window plus/minus the balloontip size. The pointing arrow is positioned accordingly.

hierarchy Inheritance Diagram

Inheritance diagram for: BalloonFrame

Inheritance diagram of BalloonFrame


method_summary Methods Summary

__init__Default class constructor.
OnCloseHandles the wx.EVT_CLOSE event for BalloonTip.
OnEnterButtonHandles the wx.EVT_ENTER_WINDOW for the BalloonTip button.
OnLeaveButtonHandles the wx.EVT_LEAVE_WINDOW for the BalloonTip button.
SetBalloonShapeSets the balloon shape.

API Class API

class BalloonFrame(wx.Frame)[source]

This class is called by the main BalloonTip class, and it is responsible for the frame creation/positioning on screen depending on target control/window, the frame can position itself to NW (default), NE, SW, SE. The switch on positioning is done by calculating the absolute position of the target control/window plus/minus the balloontip size. The pointing arrow is positioned accordingly.



__init__(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, classparent=None)[source]

Default class constructor.

Used internally. Do not call directly this class in your application!



OnClose(event)[source]

Handles the wx.EVT_CLOSE event for BalloonTip.

Parameters:event – a wx.CloseEvent event to be processed.


OnEnterButton(event)[source]

Handles the wx.EVT_ENTER_WINDOW for the BalloonTip button.

When the BalloonTip is created with the tipstyle = BT_BUTTON, this event provide some kind of 3D effect when the mouse enters the button area.

Parameters:event – a wx.MouseEvent event to be processed.


OnLeaveButton(event)[source]

Handles the wx.EVT_LEAVE_WINDOW for the BalloonTip button.

When the BalloonTip is created with the tipstyle = BT_BUTTON, this event provide some kind of 3D effect when the mouse enters the button area.

Parameters:event – a wx.MouseEvent event to be processed.



SetBalloonShape(event=None)[source]

Sets the balloon shape.

Parameters:event – on wxGTK, a wx.WindowCreateEvent event to process.
Tree

Table Of Contents

Previous topic

balloontip

Next topic

BalloonTip