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

3
from .FXComposite import FXComposite
×
4
from .FXHorizontalFrame import FXHorizontalFrame
×
5

6
#: Information note.
7
NOTE_INFORMATION: int = hash("NOTE_INFORMATION")
×
8

9
#: Warning note.
10
NOTE_WARNING: int = hash("NOTE_WARNING")
×
11

12

13
class AFXNote(FXHorizontalFrame):
×
14
    """This class prefixes a given message string by either "Note:" or "Warning:"."""
15

16
    def __init__(self, p: FXComposite, message: str, opts: int = NOTE_INFORMATION, x: int = 0, y: int = 0):
×
17
        """Constructor.
18

19
        Parameters
20
        ----------
21
        p : FXComposite
22
            Parent widget.
23
        message : str
24
            Note message string.
25
        opts : int
26
            Options and hints.
27
        x : int
28
            X coordinate of origin.
29
        y : int
30
            Y coordinate of origin.
31
        """
32

33
    def create(self):
×
34
        """Creates the note.
35

36
        Reimplemented from FXComposite.
37
        """
38

39
    def detach(self):
×
40
        """Detaches the server-resources of the note.
41

42
        Reimplemented from FXComposite.
43
        """
44

45
    def disable(self):
×
46
        """Disables the note.
47

48
        Reimplemented from FXWindow.
49
        """
50

51
    def enable(self):
×
52
        """Enables the note.
53

54
        Reimplemented from FXWindow.
55
        """
56

57
    def getText(self):
×
58
        """Returns the note's message string."""
59

60
    def setText(self, message: str):
×
61
        """Sets the note's message string.
62

63
        Parameters
64
        ----------
65
        message : str
66
            Message.
67
        """
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