|
1 | | -from AppKit import * |
| 1 | +import AppKit |
2 | 2 | import os |
3 | 3 |
|
4 | 4 | from vanilla import * |
@@ -92,7 +92,7 @@ def closeCallback(self, sender): |
92 | 92 | genericListPboardType = "genericListPboardType" |
93 | 93 |
|
94 | 94 |
|
95 | | -class BatchPathWrapper(NSObject): |
| 95 | +class BatchPathWrapper(AppKit.NSObject): |
96 | 96 |
|
97 | 97 | def __new__(cls, *arg, **kwargs): |
98 | 98 | return cls.alloc().init() |
@@ -127,7 +127,7 @@ def __init__(self): |
127 | 127 | imageNamed="toolbarScriptNew", |
128 | 128 | callback=self.toolbarAddOpenFonts, |
129 | 129 | ), |
130 | | - dict(itemIdentifier=NSToolbarFlexibleSpaceItemIdentifier), |
| 130 | + dict(itemIdentifier=AppKit.NSToolbarFlexibleSpaceItemIdentifier), |
131 | 131 |
|
132 | 132 | dict( |
133 | 133 | itemIdentifier="Help", |
@@ -157,14 +157,14 @@ def __init__(self): |
157 | 157 | allowsMultipleSelection=True, |
158 | 158 | enableDelete=True, |
159 | 159 | dragSettings=dict(type=genericListPboardType, callback=self.dragCallback), |
160 | | - selfDropSettings=dict(type=genericListPboardType, operation=NSDragOperationMove, callback=self.selfDropCallback), |
| 160 | + selfDropSettings=dict(type=genericListPboardType, operation=AppKit.NSDragOperationMove, callback=self.selfDropCallback), |
161 | 161 | selfApplicationDropSettings=dict( |
162 | | - type=NSFilenamesPboardType, |
163 | | - operation=NSDragOperationCopy, |
| 162 | + type=AppKit.NSFilenamesPboardType, |
| 163 | + operation=AppKit.NSDragOperationCopy, |
164 | 164 | callback=self.dropPathCallback), |
165 | 165 | otherApplicationDropSettings=dict( |
166 | | - type=NSFilenamesPboardType, |
167 | | - operation=NSDragOperationCopy, |
| 166 | + type=AppKit.NSFilenamesPboardType, |
| 167 | + operation=AppKit.NSDragOperationCopy, |
168 | 168 | callback=self.dropPathCallback), |
169 | 169 | ) |
170 | 170 |
|
|
0 commit comments