726 """ |
726 """ |
727 Public slot to load a UI file. |
727 Public slot to load a UI file. |
728 |
728 |
729 @param uiFileName name of the UI file to load (string) |
729 @param uiFileName name of the UI file to load (string) |
730 """ |
730 """ |
731 widget = self.__findWidget(uiFileName) |
731 wview = self.__findWidget(uiFileName) |
732 if widget is None: |
732 if wview is None: |
733 name = os.path.basename(uiFileName) |
733 name = os.path.basename(uiFileName) |
734 if not name: |
734 if not name: |
735 QMessageBox.warning(None, |
735 QMessageBox.warning(None, |
736 self.trUtf8("Load UI File"), |
736 self.trUtf8("Load UI File"), |
737 self.trUtf8("""<p>The file <b>{0}</b> could not be loaded.</p>""")\ |
737 self.trUtf8("""<p>The file <b>{0}</b> could not be loaded.</p>""")\ |