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

3
from .constants import DEFAULT_SPACING
×
4
from .FXColor import FXColor
×
5
from .FXComposite import FXComposite
×
6
from .FXFont import FXFont
×
7
from .FXObject import FXObject
×
8
from .FXPacker import FXPacker
×
9

10
#: Orient label above button.
11
AFXCOLORBUTTON_VERTICAL: int = hash("AFXCOLORBUTTON_VERTICAL")
×
12

13

14
class AFXColorComboBox(FXPacker):
×
15
    """This class contains a label that precedes a color well, which allows the user to bring up a color dialog
16
    box by double clicking.
17

18
    When connected to an AFXStringKeyword, this widget will assign the value of the button's current color
19
    to the keyword in hex format (for example, "FF0000").
20
    """
21

22
    def AFXColorButton(
×
23
        self,
24
        p: FXComposite,
25
        text: str,
26
        tgt: FXObject | None = None,
27
        sel: int = 0,
28
        opts: int = 0,
29
        x: int = 0,
30
        y: int = 0,
31
        w: int = 0,
32
        h: int = 0,
33
        pl: int = DEFAULT_SPACING,
34
        pr: int = DEFAULT_SPACING,
35
        pt: int = DEFAULT_SPACING,
36
        pb: int = DEFAULT_SPACING,
37
    ):
38
        """Constructor.
39

40
        Parameters
41
        ----------
42
        p : FXComposite
43
            Parent widget.
44
        text : str
45
            Label string.
46
        tgt : FXObject | None
47
            Message target.
48
        sel : int
49
            Message ID.
50
        opts : int
51
            Options and hints.
52
        x : int
53
            X coordinate of origin.
54
        y : int
55
            Y coordinate of origin.
56
        w : int
57
            Width of the widget.
58
        h : int
59
            Width of the widget.
60
        pl : int
61
            Left padding (margin).
62
        pr : int
63
            Right padding (margin).
64
        pt : int
65
            Top padding (margin).
66
        pb : int
67
            Bottom padding (margin).
68
        """
69

70
    def create(self):
×
71
        """Creates the color button widget.
72

73
        Reimplemented from FXComposite.
74
        """
75

76
    def disable(self):
×
77
        """Disables the color button.
78

79
        Reimplemented from FXWindow.
80
        """
81

82
    def enable(self):
×
83
        """Enables the color button.
84

85
        Reimplemented from FXWindow.
86
        """
87

88
    def getHelpText(self):
×
89
        """Returns the status line help text."""
90

91
    def getLabelFont(self):
×
92
        """Returns the label font."""
93

94
    def getLabelText(self):
×
95
        """Returns the label string."""
96

97
    def getRGBA(self):
×
98
        """Returns the color of the button."""
99

100
    def getTipText(self):
×
101
        """Returns the tool tip message."""
102

103
    def setHelpText(self, text: str):
×
104
        """Sets the status line help text.
105

106
        Parameters
107
        ----------
108
        text : str
109
        """
110

111
    def setLabelFont(self, fnt: FXFont):
×
112
        """Sets the label font.
113

114
        Parameters
115
        ----------
116
        fnt : FXFont
117
        """
118

119
    def setLabelText(self, txt: str):
×
120
        """Sets the label string.
121

122
        Parameters
123
        ----------
124
        txt : str
125
        """
126

127
    def setRGBA(self, clr: FXColor):
×
128
        """Sets the color of the button.
129

130
        Parameters
131
        ----------
132
        clr : FXColor
133
        """
134

135
    def setTipText(self, text: str):
×
136
        """Sets the tool tip message.
137

138
        Parameters
139
        ----------
140
        text : str
141
        """
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