示例#1
0
    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()
示例#2
0
    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()
示例#3
0
    def OnGUI(self):
        GUI.BeginGUI(self)
        # input some GUI command here
        GUI.BeginHorizontalLayout()
        GUI.Label(objectName="label",
                  imageMode=True,
                  imagePath="C:\\Users\\Timor\\Desktop\\AboutIcon.jfif")
        GUI.BeginVerticalLayout()
        GUI.Spacer(50)
        GUI.Label("Label_Top", "隐蔽信道检测实验平台 Ver 0.0002")
        GUI.Label("Label_Mid",
                  "Based On Qt Framework && Python && Boost Library")
        GUI.Label("Label_Bottom", "Programmers:Timor && Harun")
        GUI.Label("Label_Bottom1", "Support: Quan Sun")
        GUI.BeginHorizontalLayout()
        GUI.Label("Label_Bottom2", "官网地址")
        GUI.Label("Label_Bottom3", "https://coupon580.com/home")
        GUI.EndLayout()
        GUI.Spacer(50)
        GUI.EndLayout()
        GUI.EndLayout()

        GUI.EndGUI()
示例#4
0
	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()