方法一: 在新建ui文件时不要新建Dialog # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'D:\pythonProjects\pyqtUITest\untitled6.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! f
根据后台返回数据条数进行pie图radius定位: var a = 100; var b = 0; var c = 0; var radius = []; for (var i in data) { a = a - 15; b = a - 5; if (a < 0) { break;} radius.push([a + '%', b + '%']); }