当前位置: 首页>>代码示例>>Python>>正文


Python Configuration.getLogoSignSmall方法代码示例

本文整理汇总了Python中Configuration.Configuration.getLogoSignSmall方法的典型用法代码示例。如果您正苦于以下问题:Python Configuration.getLogoSignSmall方法的具体用法?Python Configuration.getLogoSignSmall怎么用?Python Configuration.getLogoSignSmall使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Configuration.Configuration的用法示例。


在下文中一共展示了Configuration.getLogoSignSmall方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: AboutMDQCGUI

# 需要导入模块: from Configuration import Configuration [as 别名]
# 或者: from Configuration.Configuration import getLogoSignSmall [as 别名]
class AboutMDQCGUI(GUILibraries.QDialog):
    
      
    ''' Class to manage the Filter to be implemented for the files with specific extensions '''
    
    '''Contstructor'''
    def __init__(self, parent_win):

        GUILibraries.QDialog.__init__(self, parent_win)
        self.configuration = Configuration()

        self.setWindowTitle('About ' + self.configuration.application_name)
        self.parent_win = parent_win
        self.setWindowModality(GUILibraries.Qt.WindowModal)

        self.parent_win.setWindowTitle('About ' + self.configuration.application_name)
        singleMessage.version = self.configuration.getApplicationVersion()
        
        self.setWindowIcon(GUILibraries.QIcon(self.configuration.getLogoSignSmall()))
        self.AboutFixityLayout =GUILibraries.QVBoxLayout()

        self.widget = GUILibraries.QWidget(self)
        self.pgroup = GUILibraries.QGroupBox()
        self.detail_layout = GUILibraries.QVBoxLayout()

        self.description_btn = GUILibraries.QPushButton('Description')
        self.author_and_license_btn = GUILibraries.QPushButton('Author and License')
        self.contact_btn = GUILibraries.QPushButton('Contact')
        self.close_btn = GUILibraries.QPushButton('Close')

        self.about_layout =GUILibraries.QGroupBox()
        self.heading = GUILibraries.QTextEdit()
        self.content = GUILibraries.QTextEdit()

        self.heading.setReadOnly(True)
        self.content.setReadOnly(True)

        self.main = GUILibraries.QHBoxLayout()


    def destroy(self):
        ''' Distructor'''
        del self

    def ShowDialog(self):
        ''' Show Dialog'''
        self.show()
        self.exec_()

    def SetLayout(self, layout):
        ''' Set Layout'''
        self.AboutFixityLayout = layout

    def showDescription(self):
        ''' Show Description'''
        self.heading.setText(singleMessage.messages['description_heading'])
        descriptionText = singleMessage.messages['description_Content']

        self.content.setText(descriptionText)
        self.description_btn.setDisabled(True)
        self.author_and_license_btn.setDisabled(False)
        self.contact_btn.setDisabled(False)
    def showLicense(self):
        ''' Show License Information On About Us Page(Trigger in  button press)'''
        self.heading.setText(singleMessage.messages['License_heading'])
        ''' Header Detail '''
        LicenseText = singleMessage.messages['License_Content']

        self.content.setText(LicenseText)
        self.description_btn.setDisabled(False)
        self.author_and_license_btn.setDisabled(True)
        self.contact_btn.setDisabled(False)

    def showContact(self):
        '''Trigger The Show Contact'''
        self.heading.setText(singleMessage.messages['Contact_heading'])
        ContactText = singleMessage.messages['Contact_Content']

        self.content.setText(ContactText)
        self.description_btn.setDisabled(False)
        self.author_and_license_btn.setDisabled(False)
        self.contact_btn.setDisabled(True)

    def SetDesgin(self):
        ''' All design Management Done in Here'''
        try:
            self.description_btn.setFixedSize(210, 30)
            self.author_and_license_btn.setFixedSize(210, 30)
            self.contact_btn.setFixedSize(210, 30)
        except:
            self.description_btn =GUILibraries.QPushButton('Description')
            self.author_and_license_btn =GUILibraries.QPushButton('Author and License')
            self.contact_btn =GUILibraries.QPushButton('Contact')
            self.close_btn =GUILibraries.QPushButton('Close')

        pic =GUILibraries.QLabel(self)
        pic.setGeometry(30, 30, 500, 600)
        pic.setFixedSize(400,400)

        '''use full ABSOLUTE path to the image, not relative'''
#.........这里部分代码省略.........
开发者ID:CronWorks,项目名称:mdqc,代码行数:103,代码来源:AboutMDQCGUI.py


注:本文中的Configuration.Configuration.getLogoSignSmall方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。