• 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/AFXMenuCommand.py
1
from __future__ import annotations
×
2

3
from .AFXGuiObjectManager import AFXGuiObjectManager
×
4
from .FXComposite import FXComposite
×
5
from .FXIcon import FXIcon
×
6
from .FXMenuCommand import FXMenuCommand
×
7
from .FXObject import FXObject
×
8

9

10
class AFXMenuCommand(FXMenuCommand):
×
11
    """This class provides the interface for creating an FXMenuCommand and performing various management
12
    activities on it.
13

14
    It will use utility methods so the menu command is correctly managed for modules and toolsets.
15
    """
16

17
    def __init__(
×
18
        self,
19
        owner: AFXGuiObjectManager,
20
        p: FXComposite,
21
        label: str,
22
        ic: FXIcon | None = None,
23
        tgt: FXObject | None = None,
24
        sel: int = 0,
25
    ):
26
        """Constructor.
27

28
        Parameters
29
        ----------
30
        owner : AFXGuiObjectManager
31
            Creator of the menu command.
32
        p : FXComposite
33
            Parent widget.
34
        label : str
35
            Label for the menu button.
36
        ic : FXIcon | None
37
            Menu button icon.
38
        tgt : FXObject | None
39
            Message target.
40
        sel : int
41
            Message ID.
42
        """
43

44
    def getOwner(self):
×
45
        """Returns the owner of the menu command.
46

47
        Reimplemented from FXWindow.
48
        """
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