mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Additional ribbonbar_demo tweaks and cleanup.
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import sys
|
||||
"""
|
||||
This module implements a demo application that shows many of the features of
|
||||
the RibbonBar and related classes found in the wx.ribbon module. It is very
|
||||
similar to the pure-python implementation found in the wx.lib.agw.ribbon
|
||||
package. In fact, this demo was ported from the AGW version of the demo with
|
||||
just a few relatively minor edits.
|
||||
"""
|
||||
|
||||
import wx
|
||||
import wx.ribbon as RB
|
||||
@@ -9,7 +14,6 @@ import wx.ribbon as RB
|
||||
import images
|
||||
|
||||
|
||||
|
||||
# --------------------------------------------------- #
|
||||
# Some constants for ribbon buttons
|
||||
|
||||
@@ -615,7 +619,7 @@ class RibbonFrame(wx.Frame):
|
||||
gallery.SetSelection(item)
|
||||
|
||||
# Send an event to respond to the selection change
|
||||
dummy = RB.RibbonGalleryEvent(RB.wxEVT_COMMAND_RIBBONGALLERY_SELECTED,
|
||||
dummy = RB.RibbonGalleryEvent(RB.wxEVT_RIBBONGALLERY_SELECTED,
|
||||
gallery.GetId())
|
||||
dummy.SetEventObject(gallery)
|
||||
dummy.SetGallery(gallery)
|
||||
|
||||
Reference in New Issue
Block a user