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


Python wx.SYS_COLOUR_GRAYTEXT属性代码示例

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


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

示例1: resetSecureBootSeqColor

# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYS_COLOUR_GRAYTEXT [as 别名]
def resetSecureBootSeqColor( self ):
        self.resetCertificateColor()
        self.m_panel_genImage1_browseApp.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_panel_genImage1_browseApp.Enable( False )
        self.m_panel_genImage2_habCryptoAlgo.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_panel_genImage2_habCryptoAlgo.Enable( False )
        self.m_panel_genImage3_enableCertForHwCrypto.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_panel_genImage3_enableCertForHwCrypto.Enable( False )
        self.m_button_genImage.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_button_genImage.Enable( False )
        self.resetKeyStorageRegionColor()
        self.m_panel_flashImage1_showImage.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_panel_flashImage1_showImage.Enable( False )
        self.m_button_flashImage.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_button_flashImage.Enable( False )
        self.m_panel_progDek1_showHabDek.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_panel_progDek1_showHabDek.Enable( False )
        self.m_textCtrl_habDek128bit.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_GRAYTEXT ) )
        self.m_textCtrl_habDek128bit.Enable( False )
        self.m_button_progDek.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_button_progDek.Enable( False )
        self.Refresh() 
开发者ID:JayHeng,项目名称:NXP-MCUBootUtility,代码行数:24,代码来源:uicore.py

示例2: resetKeyStorageRegionColor

# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYS_COLOUR_GRAYTEXT [as 别名]
def resetKeyStorageRegionColor( self ):
        self.m_panel_prepHwCrypto1_hwCryptoKeyRegion.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_panel_prepHwCrypto1_hwCryptoKeyRegion.Enable( False )
        self.m_panel_prepHwCrypto2_hwCryptoAlgo.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_panel_prepHwCrypto2_hwCryptoAlgo.Enable( False )
        self.m_button_prepHwCrypto.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_button_prepHwCrypto.Enable( False )
        self.m_panel_operHwCrypto1_hwCryptoKeyInfo.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_panel_operHwCrypto1_hwCryptoKeyInfo.Enable( False )
        self.m_panel_operHwCrypto2_showGp4Dek.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_panel_operHwCrypto2_showGp4Dek.Enable( False )
        self.m_textCtrl_gp4Dek128bit.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_GRAYTEXT ) )
        self.m_textCtrl_gp4Dek128bit.Enable( False )
        self.m_panel_operHwCrypto3_showSwgp2Dek.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_panel_operHwCrypto3_showSwgp2Dek.Enable( False )
        self.m_textCtrl_swgp2Dek128bit.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_GRAYTEXT ) )
        self.m_textCtrl_swgp2Dek128bit.Enable( False )
        self.m_button_operHwCrypto.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_button_operHwCrypto.Enable( False )
        self.Refresh() 
开发者ID:JayHeng,项目名称:NXP-MCUBootUtility,代码行数:22,代码来源:uicore.py

示例3: resetCertificateColor

# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYS_COLOUR_GRAYTEXT [as 别名]
def resetCertificateColor( self ):
        self.m_panel_doAuth1_certInput.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_textCtrl_serial.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_GRAYTEXT ) )
        self.m_textCtrl_keyPass.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_GRAYTEXT ) )
        self.m_panel_doAuth1_certInput.Enable( False )
        self.m_panel_doAuth2_certFmt.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_panel_doAuth2_certFmt.Enable( False )
        self.m_button_genCert.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_button_genCert.Enable( False )
        self.m_panel_progSrk1_showSrk.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_panel_progSrk1_showSrk.Enable( False )
        self.m_textCtrl_srk256bit.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_GRAYTEXT ) )
        self.m_textCtrl_srk256bit.Enable( False )
        self.m_button_progSrk.SetBackgroundColour( uidef.kBootSeqColor_Invalid )
        self.m_button_progSrk.Enable( False )
        self.Refresh() 
开发者ID:JayHeng,项目名称:NXP-MCUBootUtility,代码行数:18,代码来源:uicore.py

示例4: RTxxx_updateOtpRegionField

# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYS_COLOUR_GRAYTEXT [as 别名]
def RTxxx_updateOtpRegionField( self ):
        self.resetFuseOtpRegionField()
        color = None
        if self.isToolRunAsEntryMode:
            color = wx.SYS_COLOUR_GRAYTEXT
            if self.mcuSeries == uidef.kMcuSeries_iMXRTxxx:
                if self.efuseGroupSel == 0:
                    self.m_textCtrl_fuse440.SetBackgroundColour( wx.SystemSettings.GetColour( color ) )
                    self.m_textCtrl_fuse480.SetBackgroundColour( wx.SystemSettings.GetColour( color ) )
                    self.m_textCtrl_fuse490.SetBackgroundColour( wx.SystemSettings.GetColour( color ) )
                elif self.efuseGroupSel == 1:
                    pass
                elif self.efuseGroupSel == 2:
                    pass
                elif self.efuseGroupSel == 3:
                    pass
                elif self.efuseGroupSel == 4:
                    pass
                elif self.efuseGroupSel == 5:
                    pass
                elif self.efuseGroupSel == 6:
                    pass
                else:
                    pass
            else:
                pass
        self.Refresh() 
开发者ID:JayHeng,项目名称:NXP-MCUBootUtility,代码行数:29,代码来源:RTxxx_uicore.py

示例5: reset_text

# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYS_COLOUR_GRAYTEXT [as 别名]
def reset_text(self, force=False):
        self.dont_reset = True
        if force or self.GetValue() == '':
            self.SetValue(self.default_text)
            self.SetStyle(0, len(self.default_text),
                          wx.TextAttr(wx.SystemSettings_GetColour(wx.SYS_COLOUR_GRAYTEXT)))
        self.dont_reset = False 
开发者ID:kenorb-contrib,项目名称:BitTorrent,代码行数:9,代码来源:DownloadManager.py

示例6: DrawLabel

# 需要导入模块: import wx [as 别名]
# 或者: from wx import SYS_COLOUR_GRAYTEXT [as 别名]
def DrawLabel(self, dc, width, height, dw=0, dy=0):
        bmp = self.bmpLabel
        if bmp is not None:     # if the bitmap is used
            if self.bmpDisabled and not self.IsEnabled():
                bmp = self.bmpDisabled
            if self.bmpFocus and self.hasFocus:
                bmp = self.bmpFocus
            if self.bmpSelected and not self.up:
                bmp = self.bmpSelected
            bw, bh = bmp.GetWidth(), bmp.GetHeight()
            if not self.up:
                dw = dy = self.labelDelta
            hasMask = bmp.GetMask() is not None
        else:
            bw = bh = 0     # no bitmap -> size is zero

        dc.SetFont(self.GetFont())
        if self.IsEnabled():
            dc.SetTextForeground(self.GetForegroundColour())
        else:
            dc.SetTextForeground(wx.SystemSettings.GetColour(wx.SYS_COLOUR_GRAYTEXT))

        label = self.GetLabel()
        tw, th = dc.GetTextExtent(label)        # size of text
        if not self.up:
            dw = dy = self.labelDelta

        pos_x = (width - bw) // 2 + dw      # adjust for bitmap and text to centre
        pos_y = (height - bh - th) // 2 + dy
        if bmp is not None:
            dc.DrawBitmap(bmp, pos_x, pos_y, hasMask)  # draw bitmap if available
            pos_x = (width-tw)//2+dw      # adjust for bitmap and text to centre
            pos_y += bh + 2

        dc.DrawText(label, pos_x, pos_y)      # draw the text 
开发者ID:thiagoralves,项目名称:OpenPLC_Editor,代码行数:37,代码来源:ConfTreeNodeEditor.py


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