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

3
from .FXLabel import FXLabel
×
4

5
#: Automatically gray out when no target.
6
MENUBUTTON_AUTOGRAY: int = hash("MENUBUTTON_AUTOGRAY")
×
7

8
#: Automatically hide when no target.
9
MENUBUTTON_AUTOHIDE: int = hash("MENUBUTTON_AUTOHIDE")
×
10

11
#: Toolbar style.
12
MENUBUTTON_TOOLBAR: int = hash("MENUBUTTON_TOOLBAR")
×
13

14
#: CAE - Combobox style.
15
MENUBUTTON_COMBOBOX: int = hash("MENUBUTTON_COMBOBOX")
×
16

17
#: Popup window appears below menu button.
18
MENUBUTTON_DOWN: int = hash("MENUBUTTON_DOWN")
×
19

20
#: Popup window appears above menu button.
21
MENUBUTTON_UP: int = hash("MENUBUTTON_UP")
×
22

23
#: Popup window to the left of the menu button.
24
MENUBUTTON_LEFT: int = hash("MENUBUTTON_LEFT")
×
25

26
#: Popup window to the right of the menu button.
27
MENUBUTTON_RIGHT: int = hash("MENUBUTTON_RIGHT")
×
28

29
#: Do not show arrows.
30
MENUBUTTON_NOARROWS: int = hash("MENUBUTTON_NOARROWS")
×
31

32
#: Popup attaches to the left side of the menu button.
33
MENUBUTTON_ATTACH_LEFT: int = hash("MENUBUTTON_ATTACH_LEFT")
×
34

35
#: Popup attaches to the top of the menu button.
36
MENUBUTTON_ATTACH_TOP: int = hash("MENUBUTTON_ATTACH_TOP")
×
37

38
#: Popup attaches to the right side of the menu button.
39
MENUBUTTON_ATTACH_RIGHT: int = hash("MENUBUTTON_ATTACH_RIGHT")
×
40

41
#: Popup attaches to the bottom of the menu button.
42
MENUBUTTON_ATTACH_BOTTOM: int = hash("MENUBUTTON_ATTACH_BOTTOM")
×
43

44
#: Popup attaches to the center of the menu button.
45
MENUBUTTON_ATTACH_CENTER: int = hash("MENUBUTTON_ATTACH_CENTER")
×
46

47
#: Popup attaches to both sides of the menu button.
48
MENUBUTTON_ATTACH_BOTH: int = hash("MENUBUTTON_ATTACH_BOTH")
×
49

50

51
class FXMenuButton(FXLabel):
×
52
    """A menu button posts a popup menu when clicked.
53

54
    There are many ways to control the placement where the popup will appear; first, the popup may be placed
55
    on either of the four sides relative to the menu button; this is controlled by the flags
56
    MENUBUTTON_DOWN, etc. Next, there are several attachment modes; the popup's left/bottom edge may attach
57
    to the menu button's left/top edge, or the popup's right/top edge may attach to the menu button's
58
    right/bottom edge, or both. Also, the popup may apear centered relative to the menu button. Finally, a
59
    small offset may be specified to displace the location of the popup by a few pixels so as to account for
60
    borders and so on. Normally, the menu button shows an arrow pointing to the direction where the popup is
61
    set to appear; this can be turned off by passing the option MENUBUTTON_NOARROWS.
62
    """
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