Ejemplo n.º 1
0
def fill_browser(pobj):
    nfiles = 0
    dl, nfiles = xfl.fl_get_dirlist( ".", "*", 0)
    xfl.fl_freeze_form(pobj.contents.form)
    buf = "Total %d files" % nfiles
    xfl.fl_set_object_label(fd_fbform.total, buf)
    xfl.fl_clear_browser(fd_fbform.browser)
    for ds in range(0, nfiles):
        buf = "%-10s\t%5ldK\t%s\n" % (dl[ds].name, \
                dl[ds].dl_size >> 10, time.ctime(dl[ds].dl_mtime))
        xfl.fl_addto_browser_chars(fd_fbform.browser, buf)
    xfl.fl_unfreeze_form(pobj.contents.form)
Ejemplo n.º 2
0
 def test_fl_addto_browser_chars(self):
     """fl_addto_browser_chars(ptr_flobject, addedtext)"""
     xfl.fl_addto_browser_chars(0.1, 1, 4, 149, E.U., 254, iop, [0, 1, 2, 3], )