def OnGUI(self): GUI.BeginGUI(self) GUI.BeginGroup("Server Information") GUI.BeginHorizontalLayout() GUI.Label("服务器IP地址") GUI.IPAddress("edit_serverIP") GUI.Spacer(50) GUI.Label("服务器端口号") GUI.LineEdit("edit_port") GUI.EndLayout() GUI.EndGroup() GUI.BeginGroup("Propery Setting") GUI.BeginHorizontalLayout() GUI.Label("JitterBug阈值w:") GUI.LineEdit("edit_w") GUI.EndLayout() GUI.EndGroup() GUI.BeginGroup("Display") GUI.BeginHorizontalLayout() GUI.Label("发送进度") GUI.ProgressBar("progressBar_send") GUI.EndLayout() GUI.EndGroup() GUI.BeginHorizontalLayout() GUI.Spacer(400) GUI.Button("button_Connect", "连接服务器") GUI.Button("button_Send", "开始发送") GUI.EndLayout() GUI.EndGroup() GUI.EndGUI()
def OnGUI(self): GUI.BeginGUI(self) GUI.BeginTab('Tab_Main', True) GUI.BeginSubTab('Tab_Display', '展示') GUI.BeginGroup("字体") GUI.BeginVerticalLayout() GUI.BeginHorizontalLayout() GUI.Label('label_fontInfo1', '当前字体信息') GUI.Label('label_fontInfo2', '') GUI.Button('button_fontSetting', '字体设置') GUI.EndLayout() GUI.EndLayout() GUI.EndGroup() GUI.EndSubTab() GUI.BeginSubTab('', 'Tab2') GUI.BeginVerticalLayout() GUI.Label('label5', 'line 24') GUI.Label('label6', 'line 25') GUI.EndLayout() GUI.EndSubTab() GUI.EndTab() GUI.EndGUI()
def OnGUI(self): GUI.BeginGUI(self) GUI.BeginHorizontalLayout() GUI.Button("button","按钮") GUI.EndLayout() GUI.BeginGroup("Group SpinBox Demo") GUI.BeginVerticalLayout() GUI.BeginHorizontalLayout() GUI.Label("label_1",'随便编辑1') GUI.DoubleSpinBox('spinBox1',min = -12.0,max = 20,step = 0.1) GUI.EndLayout() GUI.BeginHorizontalLayout() GUI.Label("label2",'随便编辑2') GUI.DoubleSpinBox('spinBox2',min = -10.0,max = 20,step = 0.5) GUI.EndLayout() GUI.EndLayout() GUI.EndGroup() GUI.BeginGroup("Group Tab Demo") GUI.BeginTab('Tab_Main',True) GUI.BeginSubTab('Tab111','Tab1') GUI.BeginVerticalLayout() GUI.Label('label3','line 1') GUI.Label('label4','line 2') GUI.EndLayout() GUI.EndSubTab() GUI.BeginSubTab('Tab222','Tab2') GUI.BeginVerticalLayout() GUI.Label('label5','line 24') GUI.Label('label6','line 25') GUI.EndLayout() GUI.EndSubTab() GUI.EndTab() GUI.EndGroup() GUI.EndGUI()
def OnGUI(self): GUI.BeginGUI(self) GUI.BeginGroup("Server Information") GUI.BeginHorizontalLayout() GUI.Label("服务器IP地址") GUI.IPAddress("edit_serverIP") GUI.Spacer(50) GUI.Label("服务器端口号") GUI.LineEdit("edit_port") GUI.Label("发包数量") GUI.LineEdit("edit_count") GUI.EndLayout() GUI.EndGroup() GUI.BeginGroup("Propery Setting") GUI.BeginHorizontalLayout() GUI.Label("间隔时间") GUI.LineEdit("edit_interval") GUI.Spacer(50) GUI.Label("轮换模式") GUI.CheckBox("check_turn", "") GUI.Label("轮换周期") GUI.LineEdit("edit_period") GUI.EndLayout() GUI.EndGroup() GUI.BeginGroup("Display") GUI.BeginHorizontalLayout() GUI.Label("发送进度") GUI.ProgressBar("progressBar_send") GUI.EndLayout() GUI.EndGroup() GUI.BeginHorizontalLayout() GUI.Spacer(400) GUI.Button("button_Connect", "连接服务器") GUI.Button("button_Send", "开始发送") GUI.Button("button_Test", "测试") GUI.EndLayout() GUI.EndGroup() GUI.EndGUI()
def OnGUI(self): GUI.BeginGUI(self) GUI.BeginGroup("Group 1") GUI.BeginHorizontalLayout() GUI.Button("testBtn1", "testBtn1") GUI.Button("testBtn2", "testBtn2") GUI.LineEdit("testEdit") GUI.EndLayout() GUI.EndGroup() GUI.BeginGroup("Group 2") GUI.BeginVerticalLayout() GUI.Button("testBtn3", "testBtn3") GUI.Button("testBtn4", "testBtn4") GUI.CheckBox("testCheckBox", "testCheckBox", True) GUI.ProgressBar("testProgressBar") GUI.EndLayout() GUI.EndGroup() GUI.EndGUI()
def OnGUI(self): GUI.BeginGUI(self) GUI.BeginGroup("Server Infomation") GUI.BeginHorizontalLayout() GUI.Label("服务器IP地址") GUI.IPAddress("edit_serverIP") GUI.Label("服务器端口号") GUI.LineEdit("edit_port") GUI.Button("button_StartServer", "开启服务器") GUI.EndLayout() GUI.EndGroup() GUI.BeginGroup("Client Information") GUI.BeginHorizontalLayout() GUI.Table("table_client", ["IP地址", "端口号", "消息总数", "连接时间", "连接状态", "最后消息"]) GUI.BeginVerticalLayout() GUI.Button("button_export", "导出数据") GUI.Button("button_deleteClient", "删除Client") GUI.Button("button_closeServer", "关闭服务器") GUI.EndLayout() GUI.EndLayout() GUI.EndGroup() GUI.EndGUI()
def OnGUI(self): GUI.BeginGUI(self) GUI.BeginGroup("Detection Setting") GUI.BeginHorizontalLayout() GUI.Label("IPDs文件") GUI.LineEdit("edit_ipds_file") GUI.Button("button_openipds","打开文件") GUI.EndLayout() GUI.EndGroup() GUI.BeginHorizontalLayout() GUI.Spacer(400) GUI.Button("button_drawIPDs","绘制IPDs图像") GUI.EndLayout() GUI.EndGUI()