Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3ef038

Browse files
committed
- Don't ask for bring-to-front when quitting through an appleevent.
- Changed checkbox labels as suggested by Kevin Ollivier.
1 parent 3fd4013 commit f3ef038

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Mac/Tools/IDE/PackageManager.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ def makeusermenus(self):
110110
runitem, homepageitem]
111111

112112
def quitevent(self, theAppleEvent, theReply):
113-
from Carbon import AE
114-
AE.AEInteractWithUser(50000000)
115113
self._quit()
116114

117115
def ignoreevent(self, theAppleEvent, theReply):
@@ -272,7 +270,7 @@ def close(self):
272270
self.closepimp()
273271

274272
def setupwidgets(self):
275-
self.w = W.Window((580, 400), "Python Install Manager", minsize = (300, 200), tabbable = 0)
273+
self.w = W.Window((580, 400), "Python Install Manager", minsize = (400, 200), tabbable = 0)
276274
## self.w.divline = W.HorizontalLine((0, 20, 0, 0))
277275
self.w.titlebar = W.TextBox((4, 4, 40, 12), 'Packages:')
278276
data = self.getbrowserdata()
@@ -282,10 +280,10 @@ def setupwidgets(self):
282280
self.w.message_l = W.TextBox((4, -48, 60, 12), 'Status:')
283281
self.w.message = W.TextBox((64, -48, 0, 12), '')
284282
self.w.homepage_button = W.Button((4, -28, 96, 18), 'View homepage', self.do_homepage)
285-
self.w.verbose_button = W.CheckBox((-288, -26, 60, 18), 'Verbose')
286-
self.w.recursive_button = W.CheckBox((-224, -26, 80, 18), 'Recursive', self.updatestatus)
283+
self.w.verbose_button = W.CheckBox((-358, -26, 60, 18), 'Verbose')
284+
self.w.recursive_button = W.CheckBox((-284, -26, 140, 18), 'Install dependencies', self.updatestatus)
287285
self.w.recursive_button.set(1)
288-
self.w.force_button = W.CheckBox((-140, -26, 60, 18), 'Force', self.updatestatus)
286+
self.w.force_button = W.CheckBox((-160, -26, 80, 18), 'Overwrite', self.updatestatus)
289287
self.w.install_button = W.Button((-76, -28, 56, 18), 'Install', self.do_install)
290288
self.w.open()
291289

0 commit comments

Comments
 (0)