mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-07-21 12:41:10 +02:00
26 lines
696 B
Python
26 lines
696 B
Python
import unittest
|
|
from unittests import wtc
|
|
import wx
|
|
import wx.html
|
|
|
|
import os
|
|
helpPath = os.path.join(os.path.dirname(__file__), 'helpfiles')
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class helpctrl_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_helpctrl1(self):
|
|
hc = wx.html.HtmlHelpController(parentWindow=self.frame)
|
|
hc.AddBook(os.path.join(helpPath, 'testing.hhp'))
|
|
hc.AddBook(os.path.join(helpPath, 'another.hhp'))
|
|
hc.SetShouldPreventAppExit(False)
|
|
|
|
hc.DisplayContents()
|
|
self.myYield()
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|