def init_voxel_display(self):
self.voxel_win = curses.newwin(self.h-4,self.w-2,self.y+3,self.x+2)
self.voxel_panel = curses.panel.new_panel(self.voxel_win)
self.voxel_panel.bottom()
self.voxel_panel.hide()
for x in xrange(1,self.w-3,1):
for y in xrange(1,self.h-4):
eventlet.greenthread.sleep(0)
self.voxel_win.addstr(y,x,'!',curses.color_pair(VOXEL_COLOR_PAIR+yateproto.YATE_VOXEL_UNKNOWN))
评论列表
文章目录