UI/UserInterface.py

changeset 6589
613426e62983
parent 6586
99b05f86c45e
child 6599
419f36a46608
equal deleted inserted replaced
6588:a77723d4060f 6589:613426e62983
4566 def __designer(self, fn=None, version=0): 4566 def __designer(self, fn=None, version=0):
4567 """ 4567 """
4568 Private slot to start the Qt-Designer executable. 4568 Private slot to start the Qt-Designer executable.
4569 4569
4570 @param fn filename of the form to be opened 4570 @param fn filename of the form to be opened
4571 @param version indication for the requested version (Qt 4) (integer) 4571 @type str
4572 @param version indication for the requested version (4 = Qt 4/5)
4573 @type int
4572 """ 4574 """
4573 if fn is not None and version == 0: 4575 if fn is not None and version == 0:
4574 # determine version from file, if not specified 4576 # determine version from file, if not specified
4575 try: 4577 try:
4576 f = open(fn, "r", encoding="utf-8") 4578 f = open(fn, "r", encoding="utf-8")
4642 'Ensure that it is available as <b>{0}</b>.</p>' 4644 'Ensure that it is available as <b>{0}</b>.</p>'
4643 ).format(designer)) 4645 ).format(designer))
4644 4646
4645 def __designer4(self): 4647 def __designer4(self):
4646 """ 4648 """
4647 Private slot to start the Qt-Designer 4 executable. 4649 Private slot to start the Qt-Designer 4/5 executable.
4648 """ 4650 """
4649 self.__designer(version=4) 4651 self.__designer(version=4)
4650 4652
4651 def __linguist(self, fn=None, version=0): 4653 def __linguist(self, fn=None, version=0):
4652 """ 4654 """
4653 Private slot to start the Qt-Linguist executable. 4655 Private slot to start the Qt-Linguist executable.
4654 4656
4655 @param fn filename of the translation file to be opened 4657 @param fn filename of the translation file to be opened
4656 @param version indication for the requested version (Qt 4) (integer) 4658 @type str
4659 @param version indication for the requested version (4 = Qt 4/5)
4660 @type int
4657 """ 4661 """
4658 if version < 4: 4662 if version < 4:
4659 E5MessageBox.information( 4663 E5MessageBox.information(
4660 self, 4664 self,
4661 self.tr("Qt 3 support"), 4665 self.tr("Qt 3 support"),
4711 4715
4712 @pyqtSlot() 4716 @pyqtSlot()
4713 @pyqtSlot(str) 4717 @pyqtSlot(str)
4714 def __linguist4(self, fn=None): 4718 def __linguist4(self, fn=None):
4715 """ 4719 """
4716 Private slot to start the Qt-Linguist 4 executable. 4720 Private slot to start the Qt-Linguist 4/5 executable.
4717 4721
4718 @param fn filename of the translation file to be opened 4722 @param fn filename of the translation file to be opened
4719 """ 4723 """
4720 self.__linguist(fn, version=4) 4724 self.__linguist(fn, version=4)
4721 4725
4722 def __assistant(self, home=None, version=0): 4726 def __assistant(self, home=None, version=0):
4723 """ 4727 """
4724 Private slot to start the Qt-Assistant executable. 4728 Private slot to start the Qt-Assistant executable.
4725 4729
4726 @param home full pathname of a file to display (string) 4730 @param home full pathname of a file to display
4727 @param version indication for the requested version (Qt 4) (integer) 4731 @type str
4732 @param version indication for the requested version (4 = Qt 4/5)
4733 @type int
4728 """ 4734 """
4729 if version < 4: 4735 if version < 4:
4730 E5MessageBox.information( 4736 E5MessageBox.information(
4731 self, 4737 self,
4732 self.tr("Qt 3 support"), 4738 self.tr("Qt 3 support"),
4760 'Ensure that it is available as <b>{0}</b>.</p>' 4766 'Ensure that it is available as <b>{0}</b>.</p>'
4761 ).format(assistant)) 4767 ).format(assistant))
4762 4768
4763 def __assistant4(self): 4769 def __assistant4(self):
4764 """ 4770 """
4765 Private slot to start the Qt-Assistant 4 executable. 4771 Private slot to start the Qt-Assistant 4/5 executable.
4766 """ 4772 """
4767 self.__assistant(version=4) 4773 self.__assistant(version=4)
4768 4774
4769 def __startWebBrowser(self): 4775 def __startWebBrowser(self):
4770 """ 4776 """

eric ide

mercurial