mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
37 lines
1.0 KiB
Python
37 lines
1.0 KiB
Python
import unittest
|
|
from unittests import wtc
|
|
import wx.ribbon
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class ribbon_buttonbar_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_ribbon_buttonbar1(self):
|
|
wx.ribbon.EVT_RIBBONBUTTONBAR_CLICKED
|
|
wx.ribbon.EVT_RIBBONBUTTONBAR_DROPDOWN_CLICKED
|
|
|
|
wx.ribbon.wxEVT_RIBBONBUTTONBAR_CLICKED
|
|
wx.ribbon.wxEVT_RIBBONBUTTONBAR_DROPDOWN_CLICKED
|
|
|
|
|
|
def test_ribbon_buttonbar2(self):
|
|
ribbon = wx.ribbon.RibbonBar(self.frame)
|
|
bb = wx.ribbon.RibbonButtonBar()
|
|
bb.Create(ribbon)
|
|
|
|
|
|
def test_ribbon_buttonbar3(self):
|
|
ribbon = wx.ribbon.RibbonBar(self.frame)
|
|
bb = wx.ribbon.RibbonButtonBar(ribbon)
|
|
bmp = wx.Bitmap(16,16)
|
|
b = bb.AddButton(100, "label", bmp, "help string")
|
|
|
|
|
|
def test_ribbon_buttonbar4(self):
|
|
evt = wx.ribbon.RibbonButtonBarEvent()
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|