Chad Dombrova wrote: > >> Or introduce a trick to load ui file dynamically: > >> > >> try: > >> from ui_foo import Ui_Foo > >> except ImportError: > >> from PyQt4 import uic > >> Ui_Foo = uic.loadUiType(os.path.join(os.path.dirname(__file__)), > >> 'foo.ui'))[0] ... > > We'll presumably compile the UIs for the installers, so > > end users will never see this overhead. > > before giving yourself extra work to do, it might be worthwhile to determine > if there is any noticeable load time savings by pre-creating py files from ui > files > vs using loadUiType. perhaps with many large UIs it would be noticeable.
Do you mean if loadUiType is fast enough, we don't need to compile them at all? Though I'm not familiar with the windows installer package, it packs modules into single zip file. Maybe it only supports *.py files. Yuya, ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop