• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

haiiliin / abqpy / 6433593370

06 Oct 2023 03:30PM UTC coverage: 73.825% (-9.3%) from 83.134%
6433593370

push

github

web-flow
[feature] Add GUI Toolkit Commands (backport #5260) (#5285)

[feature] Add GUI Toolkit Commands (#5260)

* Markdown

* Delete

* Add AFXApp and AFXBoolKeyword

* Delete

* Update headings

* Create parse.py

* Update parse.py

* Unicode Spaces

* Update .pre-commit-config.yaml

* Update md types

* Update Kernel plug-in registration commands.md

* Generated python stubs

* Add class inheritance

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Revert "Update .pre-commit-config.yaml"

This reverts commit 9d3aef3cc.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix mypy errors

* Delete parse.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix return types and imports

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update AFXColumnItems.md

* Update abaqusGui.py

* Add class/global flags

* Delete flags.py

* Fix flags

* Fix

* Skip mypy

* Update abaqusGui.py

* Update constants.py

* Create kernelAccess.py

* Add plugin docs

* Revert changes by docformatter

* Delete markdown files

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit a65ff5df8)

Co-authored-by: Hailin Wang <hailin.wang@connect.polyu.hk>

3661 of 3661 new or added lines in 151 files covered. (100.0%)

24137 of 32695 relevant lines covered (73.82%)

0.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/abaqus/PlugInRegistration/AFXModuleGui.py
1
from __future__ import annotations
×
2

3
from .AFXGuiObjectManager import AFXGuiObjectManager
×
4

5

6
class AFXModuleGui(AFXGuiObjectManager):
×
7
    """This is the base class for module GUIs and provides an interface for module GUI management."""
8

9
    #: Displays a part primary object.
10
    PART: int = hash("PART")
×
11

12
    #: Displays an assembly primary object.
13
    ASSEMBLY: int = hash("ASSEMBLY")
×
14

15
    #: Displays an ODB primary object.
16
    ODB: int = hash("ODB")
×
17

18
    #: Displays an XY plot primary object.
19
    XY_PLOT: int = hash("XY_PLOT")
×
20

21
    #: Displays a sketch primary object.
22
    SKETCH: int = hash("SKETCH")
×
23

24
    def __init__(self, moduleName: str, displayTypes: int):
×
25
        """Constructor.
26

27
        Parameters
28
        ----------
29
        moduleName : str
30
            Name used to identify this module.
31
        displayTypes : int
32
            Types of primary objects that this module may display.
33
        """
34

35
    def activate(self):
×
36
        """Activates the module during switch processing (allows for module specific activation
37
        requirements)."""
38

39
    def deactivate(self):
×
40
        """Deactivates the module when switching out (allows for module specific deactivation requirements)."""
41

42
    def getModuleName(self):
×
43
        """Returns the name of the module given on construction."""
44

45
    def getTypesToDisplay(self):
×
46
        """Returns the type of the primary objects which may be displayed when this module is active (this
47
        currently assumes a single type)."""
48

49
    def hide(self, location: int):
×
50
        """Deactivates and hides the module's GUI components in the menubar, toolbar and toolbox.
51

52
        Parameters
53
        ----------
54
        location : int
55
            Location where gui components are placed.
56
        """
57

58
    def show(self, location: int):
×
59
        """Activates and shows the module's GUI components in the menubar, toolbar and toolbox.
60

61
        Parameters
62
        ----------
63
        location : int
64
            Location where gui components are placed.
65
        """
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc