> On Feb 19, 2016, at 1:11 PM, Dewey Garrett <[email protected]> wrote:
>
>> ...
>> Is there a way to make them appear as vertical list?
> no
Thanks Dewey. I found the .py file and modified the “make_entryfields"
function to set the number of rows equal to the number of parameters. That way
there is one row per parameter and they all fall down a single column. A
hack, but it works.
Also, why couldn’t the subroutine parameters area be set to a
gtk.ScrolledWindow rather than a gtk.Frame so as to at least allow one to
scroll if the parameters go off the screen?
-Tom
See “My Edit:” below -
def make_entryfields(self,nparms):
self.no <http://self.no/>_of_entries = nparms
# make VBoxes as required to accomodate entries
# destroy them when starting over -- this occurs
# when a OnePg is reused for a different subfile
try:
type(self.columnbox) # test for existence
# destroy prior VBoxes packed in self.boxofcolumns
for c in self.boxofcolumns.children():
self.boxofcolumns.remove(c)
c.destroy()
del(c)
except AttributeError:
# first-time: create initial VBox for entries
self.columnbox = gtk.VBox(homogeneous=0,spacing=2)
self.boxofcolumns.pack_start(self.columnbox)
# try to use minimum height if less than 3 columns
if nparms > 20:
# My Edit:
rowmax = nparms
#rowmax = 10
else:
# My Edit:
rowmax = nparms
#rowmax = int(nparms/2 + 0.5)
self.pentries = {}
row = 0
idx = 1 # 1-based to agree with parm no.s
for i in range(0,nparms):
if row >= rowmax:
row = 0
# make a new VBox for next column of entries
self.columnbox = gtk.VBox(homogeneous=0,spacing=2)
self.boxofcolumns.pack_start(self.columnbox)
self.pentries[idx] = OneParmEntry('','','')
self.columnbox.pack_start(self.pentries[idx].box
,expand=0,fill=0,padding=0)
row += 1
idx += 1
self.boxofcolumns.show_all()
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users