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

3
from .constants import DEFAULT_PAD
×
4
from .FXComposite import FXComposite
×
5
from .FXLabel import FXLabel
×
6
from .FXObject import FXObject
×
7

8
#: Automatically gray out when not updated.
9
CHECKBUTTON_AUTOGRAY: int = hash("CHECKBUTTON_AUTOGRAY")
×
10

11
#: Automatically hide when not updated.
12
CHECKBUTTON_AUTOHIDE: int = hash("CHECKBUTTON_AUTOHIDE")
×
13

14
#: Normal check button.
15
CHECKBUTTON_NORMAL: int = hash("CHECKBUTTON_NORMAL")
×
16

17

18
class FXCheckButton(FXLabel):
×
19
    """A check button is a tri-state button.
20

21
    Normally, it is either True or False, and toggles between True or False whenever it is pressed. A third
22
    state MAYBE may be set to indicate that no selection has been made yet by the user, or that the state is
23
    ambiguous. When pressed, the check button sends a SEL_COMMAND to its target, and the message data
24
    represents the state of the check button.
25
    """
26

27
    def __init__(
×
28
        self,
29
        p: FXComposite,
30
        text: str,
31
        tgt: FXObject | None = None,
32
        sel: int = 0,
33
        opts: int = CHECKBUTTON_NORMAL,
34
        x: int = 0,
35
        y: int = 0,
36
        w: int = 0,
37
        h: int = 0,
38
        pl: int = DEFAULT_PAD,
39
        pr: int = DEFAULT_PAD,
40
        pt: int = DEFAULT_PAD,
41
        pb: int = DEFAULT_PAD,
42
    ):
43
        """Construct new check button.
44

45
        Parameters
46
        ----------
47
        p : FXComposite
48

49
        text : str
50

51
        tgt : FXObject | None
52

53
        sel : int
54

55
        opts : int
56

57
        x : int
58

59
        y : int
60

61
        w : int
62

63
        h : int
64

65
        pl : int
66

67
        pr : int
68

69
        pt : int
70

71
        pb : int
72
        """
73

74
    def canFocus(self):
×
75
        """Returns True because a check button can receive focus.
76

77
        Reimplemented from FXWindow.
78
        """
79

80
    def getCheck(self):
×
81
        """Get check button state (True, False or MAYBE).
82

83
        Reimplemented in AFXCheckButton.
84
        """
85

86
    def getDefaultHeight(self):
×
87
        """Get default height.
88

89
        Reimplemented from FXLabel.
90
        """
91

92
    def getDefaultWidth(self):
×
93
        """Get default width.
94

95
        Reimplemented from FXLabel.
96
        """
97

98
    def setCheck(self, state: bool = True):
×
99
        """Set check button state (True, False or MAYBE).
100

101
        Parameters
102
        ----------
103
        state : bool
104
        """
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