Search found 2150 matches

by onekk
Mon May 16, 2022 9:29 am
Forum: Python scripting and macros
Topic: Set label of Solid
Replies: 8
Views: 488

Re: Set label of Solid

Ok see the redundancy, I'm correcting the post.

Regards

Carlo D.
by onekk
Mon May 16, 2022 7:10 am
Forum: Python scripting and macros
Topic: There is way to specify a "position" for a menu item and toolbars ?
Replies: 0
Views: 62

There is way to specify a "position" for a menu item and toolbars ?

Hello, as in the title, there is a way to specify the position of a menu item: Using word, I want to place my menu after Macro (or maybe prior of Help). For Toolbars, I want to place my toolbar prior of "Part tools" (this is the name of one of the Part WB toolbars). In alternatives, there ...
by onekk
Mon May 16, 2022 7:02 am
Forum: Python scripting and macros
Topic: Set label of Solid
Replies: 8
Views: 488

Re: Set label of Solid

I don't think that is correct. Aren't Shape and TopoShape synonymous? What is not correct? The key point of my answer is the difference between a TopoShape that is a "solid", but has no Name and Label (and Label2 if applicable) and a DocumentObject, from my post: only DocumentObjects have...
by onekk
Mon May 16, 2022 5:04 am
Forum: Python scripting and macros
Topic: [Help] Goal seek macro
Replies: 29
Views: 2976

Re: [Help] Goal seek macro

probably with a method of same name it utilize the "last" found in sys.path. As in pythin you could "rewrite" methods this is a "feature", once you know the mechanics. Sometimes it will became a "problem", probably some "warning" that coulb be activa...
by onekk
Mon May 16, 2022 4:55 am
Forum: Python scripting and macros
Topic: Set label of Solid
Replies: 8
Views: 488

Re: Set label of Solid

Hello in the first try object cube was a TopoShape and only DocumentObjects have a Name and a Label property. So until created or "promoted" to a TopoShape with one of the methods shown in other posts object is simply a "shape". has no "Name" and "Label" prope...
by onekk
Sat May 14, 2022 3:12 pm
Forum: Python scripting and macros
Topic: Folder Structure for Macros?
Replies: 20
Views: 1033

Re: Folder Structure for Macros?

Good also if when I specify a directory in the list even his subdir where searched for Macro. To avoid possible conflicts a full path name could be used, or the name and a tooltip showing "full path". It won't be difficult to implement as from what I remember about QListWidget it is possib...
by onekk
Fri May 13, 2022 4:35 pm
Forum: Python scripting and macros
Topic: Folder Structure for Macros?
Replies: 20
Views: 1033

Re: Folder Structure for Macros?

probably it will suffice that macro folder could be made viewed as a "tree", i.e I will specify a macro folder and then if there are subdfolders in this folder macro are searched also in subfolders. In Linux and other OS subfolders could be "symlinks" so the real locations could ...
by onekk
Fri May 06, 2022 4:50 am
Forum: Developers corner
Topic: Some findings about Qt.
Replies: 5
Views: 693

Re: Some findings about Qt.

so were you usign super in your code and that caused an issue or what are we talking about? Not exactly, but something is not working as expected, probably is my style of coding that has some flaws, due mainly to the absence of decent examples around, (at least the official Qt documentation is not ...
by onekk
Thu May 05, 2022 4:48 pm
Forum: Developers corner
Topic: Some findings about Qt.
Replies: 5
Views: 693

Re: Some findings about Qt.

I have found during my search about Qt this comment on some code around, sadly I have copied the code, but no the url of the site. class USlideIDsListDialog(QDialog): # If your not going to use parent do not include but if you include then use it def __init__(self, parent): # One should not use supe...
by onekk
Thu May 05, 2022 4:42 pm
Forum: Developers corner
Topic: Modernisation: Discussions
Replies: 25
Views: 2435

Re: Modernisation: Discussions

I think several of the Std modules depend on OCCT but not the core system. I would assume they make a similar diagram as the Mesh module does there with separate App and GUI portions. but not the core system In what sense, I was thinking that the "core" of CAD program was his "modell...