def open(self, title):
     stdwin.setfont("7x14")
     self.charwidth = stdwin.textwidth("m")
     self.lineheight = stdwin.lineheight()
     self.docwidth = self.width * self.charwidth
     self.docheight = self.height * self.lineheight
     stdwin.setdefwinsize(self.docwidth + 2, self.docheight + 2)
     stdwin.setdefscrollbars(0, 0)
     self.window = stdwin.open(title)
     self.window.setdocsize(self.docwidth + 2, self.docheight + 2)
示例#2
0
 def open(self, title):
     stdwin.setfont('7x14')
     self.charwidth = stdwin.textwidth('m')
     self.lineheight = stdwin.lineheight()
     self.docwidth = self.width * self.charwidth
     self.docheight = self.height * self.lineheight
     stdwin.setdefwinsize(self.docwidth + 2, self.docheight + 2)
     stdwin.setdefscrollbars(0, 0)
     self.window = stdwin.open(title)
     self.window.setdocsize(self.docwidth + 2, self.docheight + 2)
示例#3
0
文件: cwilib.py 项目: 8Banana/py1.0
 def __init__(self):
     stdwin.setfont('7x14')
     self.queryform = QueryForm()
     self.listform = ListForm()
     self.recordform = RecordForm()
     self.forms = [self.queryform, self.listform, self.recordform]
     define_query_fields(self.queryform)
     self.windows = []
     for form in self.forms:
         if form.formheight > 0:
             form.open()
             self.windows.append(form.window)
示例#4
0
    def __init__(self):
	stdwin.setfont('7x14')
	self.queryform = QueryForm()
	self.listform = ListForm()
	self.recordform = RecordForm()
	self.forms = [self.queryform, self.listform, self.recordform]
	define_query_fields(self.queryform)
	self.windows = []
	for form in self.forms:
	    if form.formheight > 0:
		form.open()
		self.windows.append(form.window)
示例#5
0
def start(ref):
	stdwin.setdefscrollbars(0, 1)
	stdwin.setfont(FONT)
	stdwin.setdefwinsize(76*stdwin.textwidth('x'), 22*stdwin.lineheight())
	makewindow('ibrowse', ref)
	mainloop()
示例#6
0
def start(ref):
    stdwin.setdefscrollbars(0, 1)
    stdwin.setfont(FONT)
    stdwin.setdefwinsize(76 * stdwin.textwidth('x'), 22 * stdwin.lineheight())
    makewindow('ibrowse', ref)
    mainloop()