Formatting Positional Parameters

More
06 Aug 2017 17:19 #97072 by 10K
Is there some way to format the positional parameters (inputs) shown on the NGCGUI screen within GMOCCAPY? Although I have lots of blank space below the parameters, multiple columns of inputs are shown, and the rightmost one is mostly off the screen on some of the routines. Shortening the comment lines shown next to the parameter input boxes can help, but I have to abbreviate and truncate the comments.

Please Log in or Create an account to join the conversation.

More
06 Aug 2017 18:39 #97073 by newbynobi
I have never used NGCGUI, so sorry, I am not even understanding the problem.

May be you can publish a screen shot?
How is able to help?

Norbert

Please Log in or Create an account to join the conversation.

More
06 Aug 2017 21:35 #97079 by 10K
Here's a screenshot. Item #13 is off the screen on the right.

Attachments:

Please Log in or Create an account to join the conversation.

More
07 Aug 2017 17:13 #97116 by newbynobi
That looks like a nice feature.
Is should be possible to make the text with line brake, so it will cover less space and the widgets should stay nearer together.
Or just place them in a different order, instead of using three columns use only two of them.

Is that made with glade?

Could you post the code?

Norbert

Please Log in or Create an account to join the conversation.

More
08 Aug 2017 16:48 #97187 by andypugh

Please Log in or Create an account to join the conversation.

More
08 Aug 2017 18:30 #97198 by nkp
try:
pyngcgui.py
change
# try to use minimum height if less than 3 columns
        if nparms > 20:
            rowmax = 10
        else:
            rowmax  = int(nparms/2 + 0.5)
||
v
rowmax = 10
The following user(s) said Thank You: 10K

Please Log in or Create an account to join the conversation.

More
09 Aug 2017 21:30 #97263 by 10K
NKP-

I removed the if/else statement and set rowmax = 10 in pyngcgui.py, and now it's showing only two columns instead of three, and everything fits on the screen.

Thanks!

Norbert-
As Andy posted, this capability is already available inside of Gmoccapy. If you were interested in the specific threading routine, I posted it a while back on this forum at O codes If you need some help getting it working, let me know, and I'll post the specific changes required to your .INI file.

Please Log in or Create an account to join the conversation.

Moderators: newbynobiHansU
Time to create page: 0.083 seconds
Powered by Kunena Forum