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

3
from .FXComposite import FXComposite
×
4
from .FXIcon import FXIcon
×
5
from .FXMenuCaption import FXMenuCaption
×
6
from .FXObject import FXObject
×
7

8
#: Normal, unchecked state.
9
MENUSTATE_NORMAL: int = hash("MENUSTATE_NORMAL")
×
10

11
#: Checked with a checkmark.
12
MENUSTATE_CHECKED: int = hash("MENUSTATE_CHECKED")
×
13

14
#: Checked with a bullet.
15
MENUSTATE_RCHECKED: int = hash("MENUSTATE_RCHECKED")
×
16

17

18
class FXMenuCommand(FXMenuCaption):
×
19
    """The menu command widget is used to invoke a command in the application from a menu.
20

21
    Menu commands may reflect the state of the application by graying out, becoming hidden, or by a check
22
    mark or bullit.
23
    """
24

25
    def __init__(
×
26
        self,
27
        p: FXComposite,
28
        text: str,
29
        ic: FXIcon | None = None,
30
        tgt: FXObject | None = None,
31
        sel: int = 0,
32
        opts: int = 0,
33
    ):
34
        """Construct a menu command.
35

36
        Parameters
37
        ----------
38
        p : FXComposite
39

40
        text : str
41

42
        ic : FXIcon | None
43

44
        tgt : FXObject | None
45

46
        sel : int
47

48
        opts : int
49
        """
50

51
    def canFocus(self):
×
52
        """Yes it can receive the focus.
53

54
        Reimplemented from FXWindow.
55
        """
56

57
    def check(self):
×
58
        """Place checkmark next to text."""
59

60
    def checkRadio(self):
×
61
        """Place radio bullit next to text."""
62

63
    def getAccelText(self):
×
64
        """Return accelarator text."""
65

66
    def getDefaultHeight(self):
×
67
        """Return default height.
68

69
        Reimplemented from FXMenuCaption.
70
        """
71

72
    def getDefaultWidth(self):
×
73
        """Return default width.
74

75
        Reimplemented from FXMenuCaption.
76
        """
77

78
    def isChecked(self):
×
79
        """Return True if checked."""
80

81
    def isRadioChecked(self):
×
82
        """Return True if radio-checked."""
83

84
    def setAccelText(self, text: str):
×
85
        """Set accelerator text.
86

87
        Parameters
88
        ----------
89
        text : str
90
        """
91

92
    def uncheck(self):
×
93
        """Uncheck the item."""
94

95
    def uncheckRadio(self):
×
96
        """Uncheck radio bullit."""
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