Adding additional columns to the tool page
- mmt
- Offline
- Premium Member
-
Less
More
- Posts: 139
- Thank you received: 3
14 Sep 2021 15:07 - 14 Sep 2021 16:03 #220607
by mmt
Adding additional columns to the tool page was created by mmt
Not sure if this has been covered or not but I could not find it.
I am not very familiar with gmoccapy so help is appreciated.
I would like to add and remove some columns in the tool page of gmoccapy.
I can do the programming, I just mainly need to know which file would be relevant.
For example: How would I add the "U" column?
Edit: How would I DISPLAY the "U" column?
The columns that are not displayed are still there and being read, they just are not displayed on the tool page.
Thank you
I am not very familiar with gmoccapy so help is appreciated.
I would like to add and remove some columns in the tool page of gmoccapy.
I can do the programming, I just mainly need to know which file would be relevant.
For example: How would I add the "U" column?
Edit: How would I DISPLAY the "U" column?
The columns that are not displayed are still there and being read, they just are not displayed on the tool page.
Thank you
Last edit: 14 Sep 2021 16:03 by mmt.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Away
- Administrator
-
Less
More
- Posts: 4312
- Thank you received: 1912
14 Sep 2021 15:18 #220608
by Aciera
Replied by Aciera on topic Adding additional columns to the tool page
I can't give you an answer but gmoccapy adds the columns according to which axis you activate in the ini. Maybe that can point you in right direction.
Please Log in or Create an account to join the conversation.
- mmt
- Offline
- Premium Member
-
Less
More
- Posts: 139
- Thank you received: 3
15 Sep 2021 14:12 #220698
by mmt
Replied by mmt on topic Adding additional columns to the tool page
Bump
Anyone?
Anyone?
Please Log in or Create an account to join the conversation.
- newbynobi
-
- Offline
- Moderator
-
Less
More
- Posts: 2081
- Thank you received: 413
19 Sep 2021 20:09 #221146
by newbynobi
Replied by newbynobi on topic Adding additional columns to the tool page
Gmoccapy will add the columns corresponding to your INI settings. If you want to change that behavior, you will need to touch the code in gmoccapy. Py file. Search for init_tooltable or similar and add the columns you need by python code.
Norbert
Norbert
Please Log in or Create an account to join the conversation.
- charleyann
- Offline
- Junior Member
-
Less
More
- Posts: 30
- Thank you received: 10
22 Sep 2021 00:15 - 22 Sep 2021 00:18 #221307
by charleyann
Replied by charleyann on topic Adding additional columns to the tool page
I needed to add the "v" column.
I modified the "/usr/bin/gmoccapy" file (I'm running version 2.8.1)
Edit the file /usr/bin/gmoccapy
Lines 1817 thru 1820 are existing lines.
Add line 1821
Line 1817: # first we hide all the axis columns the unhide the ones we want
Line 1818: self.widgets.tooledit1.set_visible("abcxyzuvwijq", False)
Line 1819: for axis in self.axis_list:
Line 1820: self.widgets.tooledit1.set_visible("{0}".format(axis), True)
Line 1821: self.widgets.tooledit1.set_visible("v", True)
I modified the "/usr/bin/gmoccapy" file (I'm running version 2.8.1)
Edit the file /usr/bin/gmoccapy
Lines 1817 thru 1820 are existing lines.
Add line 1821
Line 1817: # first we hide all the axis columns the unhide the ones we want
Line 1818: self.widgets.tooledit1.set_visible("abcxyzuvwijq", False)
Line 1819: for axis in self.axis_list:
Line 1820: self.widgets.tooledit1.set_visible("{0}".format(axis), True)
Line 1821: self.widgets.tooledit1.set_visible("v", True)
Last edit: 22 Sep 2021 00:18 by charleyann.
The following user(s) said Thank You: Aciera
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.085 seconds