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)
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)
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)
def start(ref): stdwin.setdefscrollbars(0, 1) stdwin.setfont(FONT) stdwin.setdefwinsize(76*stdwin.textwidth('x'), 22*stdwin.lineheight()) makewindow('ibrowse', ref) mainloop()
def start(ref): stdwin.setdefscrollbars(0, 1) stdwin.setfont(FONT) stdwin.setdefwinsize(76 * stdwin.textwidth('x'), 22 * stdwin.lineheight()) makewindow('ibrowse', ref) mainloop()