Files
Phoenix/unittests/test_lib_imagebrowser.py
Robin Dunn 676b45c860 Phoenix patch from Werner for imagebrowser.
- 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
2013-04-10 00:06:00 +00:00

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