wizard.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:specviz 作者: spacetelescope 项目源码 文件源码
def _custom_unit_changed(self):

        if self.custom_units is None:
            return

        unit = self.custom_units.text()
        if unit == '':
            self.label_status.setText('')
        else:
            try:
                u.Unit(unit)
            except:
                self.label_status.setText('Invalid units')
                self.label_status.setStyleSheet('color: red')
            else:
                self.label_status.setText('Valid units')
                self.label_status.setStyleSheet('color: green')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号