From glasspusher at outofoptions.net Sun Mar 17 19:39:09 2024 From: glasspusher at outofoptions.net (dave) Date: Sun, 17 Mar 2024 17:39:09 -0700 Subject: [proFit-list] handy little function Message-ID: Hi Folks, this is a little function I wrote to tighten up the width of all the columns of a data window, you might find it useful: foo = pf.GetWindowObject(window = pf.FrontmostWindow(pf.dataType)) print (foo.nrCols) pf.SetColumnProperties(firstColumn = 1, lastColumn = 1, nrDecimals = 0, format = pf.floatingFormat, width = 35, type = pf.doubleColumn, dataLoss = pf.askForStop) pf.SetColumnProperties(firstColumn = 2, lastColumn = foo.nrCols, nrDecimals = 3, format = pf.floatingFormat, width = 35, type = pf.doubleColumn, dataLoss = pf.askForStop) -------------- next part -------------- An HTML attachment was scrubbed... URL: