/
api.py
111 lines (81 loc) · 2.34 KB
/
api.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""
Spyder application menu constants.
"""
# Local imports
from spyder.api.widgets.menus import SpyderMenu
class ApplicationContextMenu:
Documentation = 'context_documentation_section'
About = 'context_about_section'
class ApplicationMenus:
File = 'file_menu'
Edit = 'edit_menu'
Search = 'search_menu'
Source = 'source_menu'
Run = 'run_menu'
Debug = 'debug_menu'
Consoles = 'consoles_menu'
Projects = 'projects_menu'
Tools = 'tools_menu'
View = 'view_menu'
Help = 'help_menu'
class FileMenuSections:
New = 'new_section'
Open = 'open_section'
Save = 'save_section'
Print = 'print_section'
Close = 'close_section'
Switcher = 'switcher_section'
Navigation = 'navigation_section'
Restart = 'restart_section'
class EditMenuSections:
UndoRedo = 'undo_redo_section'
Copy = 'copy_section'
Editor = 'editor_section'
class SearchMenuSections:
Search = 'undo_redo_section'
class SourceMenuSections:
Options = 'options_section'
Linting = 'linting_section'
Cursor = 'cursor_section'
Actions = 'actions_section'
CodeAnalysis = 'code_analysis_section'
class RunMenuSections:
Run = 'run_section'
RunExtras = 'run_extras_section'
Profile = 'profile_section'
class DebugMenuSections:
Run = 'debug_section'
Options = 'options_section'
class ConsolesMenuSections:
New = 'new_section'
Restart = 'restart_section'
class ProjectsMenuSections:
New = 'new_section'
Open = 'open_section'
Extras = 'extras_section'
class ToolsMenuSections:
Tools = 'tools_section'
External = 'external_section'
Extras = 'extras_section'
class ViewMenuSections:
Top = 'top_section'
Pane = 'pane_section'
Toolbar = 'toolbar_section'
Layout = 'layout_section'
Bottom = 'bottom_section'
class HelpMenuSections:
Documentation = 'documentation_section'
Support = 'support_section'
ExternalDocumentation = 'external_documentation_section'
About = 'about_section'
class ApplicationMenu(SpyderMenu):
"""
Spyder Main Window application Menu.
This class provides application menus with some predefined functionality
and section definition.
"""