Additional ribbonbar_demo tweaks and cleanup.

This commit is contained in:
Robin Dunn
2016-08-23 14:29:32 -07:00
parent 27f607cb37
commit 73f0622bf6

View File

@@ -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)