mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 01:10:12 +02:00
- corrected all deprecation warnings - wrapped all user visible strings with wx.GetTranslation macro - reformatted existing doc to Sphinx format - added a little bit of doc - added a unittest git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
33 lines
886 B
Python
33 lines
886 B
Python
import imp_unittest, unittest
|
|
import wtc
|
|
import wx
|
|
import wx.lib.imagebrowser as ib
|
|
import os
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class imagebrowser_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_imagebrowserDlg(self):
|
|
# a typical use case
|
|
dlg = ib.ImageDialog(self.frame, set_dir=os.getcwd())
|
|
dlg.Destroy()
|
|
|
|
def test_imagebrowserDlgGetters(self):
|
|
dlg = ib.ImageDialog(None)
|
|
dlg.GetFile()
|
|
dlg.GetDirectory()
|
|
dlg.Destroy()
|
|
|
|
def test_imagebrowserDlgChangeTypes(self):
|
|
dlg = ib.ImageDialog(None)
|
|
dlg.ChangeFileTypes((("GIF (*.gif)", "*.gif"),
|
|
("PNG (*.png)", "*.png")))
|
|
dlg.Destroy()
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|