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

3
from .FXTopWindow import PLACEMENT_CURSOR, FXTopWindow
×
4
from .FXWindow import FXWindow
×
5

6

7
class FXDialogBox(FXTopWindow):
×
8
    """DialogBox window.
9

10
    When receiving ID_CANCEL or ID_ACCEPT, the DialogBox breaks out of the modal loop and returns False or
11
    True, respectively. To close the DialogBox when not running modally, simply send it ID_HIDE.
12
    """
13

14
    #: Closes the dialog, cancel the entry.
15
    ID_CANCEL: int = hash("ID_CANCEL")
×
16

17
    #: Closes the dialog, accept the entry.
18
    ID_ACCEPT: int = hash("ID_ACCEPT")
×
19

20
    def __init__(
×
21
        self,
22
        owner: FXWindow,
23
        name: str,
24
        x: int = 0,
25
        y: int = 0,
26
        w: int = 0,
27
        h: int = 0,
28
        pl: int = 10,
29
        pr: int = 10,
30
        pt: int = 10,
31
        pb: int = 10,
32
        hs: int = 4,
33
        vs: int = 4,
34
    ):
35
        """Construct dialog which will always float over the owner window.
36

37
        Parameters
38
        ----------
39
        owner : FXWindow
40

41
        name : str
42

43
        x : int
44

45
        y : int
46

47
        w : int
48

49
        h : int
50

51
        pl : int
52

53
        pr : int
54

55
        pt : int
56

57
        pb : int
58

59
        hs : int
60

61
        vs : int
62
        """
63

64
    def execute(self, placement: int = PLACEMENT_CURSOR):
×
65
        """Run modal invocation of the dialog. Reimplemented in FXInputDialog, and FXReplaceDialog.
66

67
        Parameters
68
        ----------
69
        placement : int
70
        """
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