FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
plotdevice/app/plotdevice-app.py at main · plotdevice/plotdevice · GitHub
plotdevice
plotdevice
Repository navigation
Code
Issues
10
(10)
Pull requests
4
(4)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
plotdevice
/
app
/
plotdevice-app.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (11 loc) · 527 Bytes
Breadcrumbs
plotdevice
/
app
/
plotdevice-app.py
Copy path
File metadata and controls
13 lines (11 loc) · 527 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
# PlotDevice is a typical document-based application. We'll import the PlotDeviceDocument
# class et al from the gui module and the corresponding document-type defined in the
# info.plist will do the rest.
import
plotdevice
.
gui
# install a signal handler to quit on ^c (should the app ever be launched from terminal)
import
AppKit
from
signal
import
signal
,
SIGINT
signal
(
SIGINT
,
lambda
m
,
n
:
AppKit
.
NSApplication
.
sharedApplication
().
terminate_
(
True
))
# loop forever
from
PyObjCTools
import
AppHelper
AppHelper
.
runEventLoop
()
Back
|
FazBrowse Home
|
New Git URL