The limit on subroutine parameters is 1 through 30.

JT

On 2/20/2016 12:05 PM, tom-...@bgp.nu wrote:
> I modified this slightly so that if the number of parameters is greater than 
> 25 (25 happen to fit nicely in the space on my monitor) it will create 
> another column parameters.  By the way, I suspect it is very uncommon for a 
> subroutine to require so many parameters.  All the subroutines I have found 
> so far have less than 15 or so.  So really a single column would suffice most 
> times...
>
> Also, if I get some time I may try to play with the gtk container to see if I 
> can make it scrollable if the parameters go off screen.
>
> ============
>        # try to use minimum height if less than 3 columns
>        if nparms > 25:
> # My Edit:
>            rowmax = 25
>            #rowmax = 10
>        else:
> # My Edit:
>            rowmax = nparms
>            #rowmax  = int(nparms/2 + 0.5)
>
>        self.pentries = {}
> ============
>
> -Tom
>
>> On Feb 19, 2016, at 2:48 PM, tom-...@bgp.nu wrote:
>>
>>
>>> On Feb 19, 2016, at 1:11 PM, Dewey Garrett <dgarr...@panix.com> 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
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>
> ------------------------------------------------------------------------------
> 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
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to