#!/usr/bin/python
from Tkinter import *
import socket
import sys
class PPCU(object):
def __init__(self):
self.top=Tk()
self.top.title('vKsir01.01')
self.nameVar=StringVar()
self.nameVar.set('Name')
self.departVar=StringVar() #departVar is a Variable string
self.departVar.set('Department')#It's default value is 'Department'
frame=Frame(self.top)
nameLabel=Label(frame,text="Name:",underline=0)
self.nameEntry=Entry(frame,textvariable=self.nameVar)
self.nameEntry.focus_set()
departLabel=Label(frame,text='Depart:',underline=0)
departEntry=Entry(frame,textvariable=self.departVar)
nameLabel.grid(row=0,column=0,sticky=W,pady=3,padx=3)
self.nameEntry.grid(row=0,column=1,sticky=EW,pady=3,padx=3)
departLabel.grid(row=0,column=2,sticky=EW,pady=3,padx=3)
depa
学习简单的python----最简单的python +3(写入XML,使用UDP发送)
最新推荐文章于 2022-04-23 09:48:10 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)