DSwin.py 文件源码

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

项目:Otop 作者: fcbarclo 项目源码 文件源码
def Winthset(self):
        self.lockvideo.acquire()

        y = self.Ypos_start_sensor 
        x = self.Xpos_start_sensor

        head = ""
        voidhead = ""
        # make led display
                for k in range( 0, len(self.WinOtopData)):
            head += self.WinOtopData[k][5]
            voidhead += "_"
            if k<len(self.WinOtopData)-1:
                head += "|"
                voidhead += "|"
        hsize = len(head)

        try:
            winthr = curses.newwin( 4, hsize+2, y, x)
            winthr.box()
            winthr.addstr(1,1,head)
            winthr.addstr(2,1,voidhead)
        except Exception as err:
            self.winthr = -1
            self.WinPrintError("Winthset Error:"+str(err) )

        self.lockvideo.release()
        return(winthr)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号