QuickWho

Check-in [499d6da1e5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:More refinements for Windows
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 499d6da1e5e2a57ac510b790df4baeb1b74d0a7f
User & Date: kevin 2020-02-21 13:31:19
Context
2020-02-21
13:51
Add Windows help: check-in: 278f231001 user: kevin tags: trunk
13:31
More refinements for Windows check-in: 499d6da1e5 user: kevin tags: trunk
2020-02-20
03:39
Tweaks for Windows check-in: 04686e16f0 user: kevin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to QuickWho.py.

211
212
213
214
215
216
217



218
219
220
221
222
223
224
            self.createcommand('::tk::mac::Quit', self.closeApp)
            self.createcommand('::tk::mac::ReopenApplication', self.reopenApp)
            self.protocol('WM_DELETE_WINDOW', self.hideWindow)
            self.bind("<{}-W>".format(self.accelkey), lambda event: self.hideWindow())
            self.bind("<{}-w>".format(self.accelkey), lambda event: self.hideWindow())
        self.bind("<{}-q>".format(self.accelkey), lambda event: self.closeApp())
        self.bind("<{}-Q>".format(self.accelkey), lambda event: self.closeApp())




        if self.isAqua():
            self.applemenu = Menu(self.mb, name='apple')
            self.mb.add_cascade(label='QuickWho', menu=self.applemenu)
            self.applemenu.add_command(label='About QuickWho', command=self.aboutWindow)
            self.applemenu.add_command(label='Check for Updates', command=self.checkUpdate)
            self.applemenu.add_separator()







>
>
>







211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
            self.createcommand('::tk::mac::Quit', self.closeApp)
            self.createcommand('::tk::mac::ReopenApplication', self.reopenApp)
            self.protocol('WM_DELETE_WINDOW', self.hideWindow)
            self.bind("<{}-W>".format(self.accelkey), lambda event: self.hideWindow())
            self.bind("<{}-w>".format(self.accelkey), lambda event: self.hideWindow())
        self.bind("<{}-q>".format(self.accelkey), lambda event: self.closeApp())
        self.bind("<{}-Q>".format(self.accelkey), lambda event: self.closeApp())
        
        if self.isWindows:
            self.protocol('WM_DELETE_WINDOW', self.closeApp)

        if self.isAqua():
            self.applemenu = Menu(self.mb, name='apple')
            self.mb.add_cascade(label='QuickWho', menu=self.applemenu)
            self.applemenu.add_command(label='About QuickWho', command=self.aboutWindow)
            self.applemenu.add_command(label='Check for Updates', command=self.checkUpdate)
            self.applemenu.add_separator()

Changes to setup.py.

12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    icon = None
    base = None
    include_files = [('/Library/Frameworks/Tcl.framework/Versions/8.6/Resources/Scripts', 'tcl8.6'),
                                ('/Library/Frameworks/Tk.framework/Versions/8.6/Resources/Scripts', 'tk8.6'),
                                ]
    
if sys.platform == 'win32':
    icon = 'quickwh.ico'
    os.environ['TCL_LIBRARY'] = 'c:/python36/tcl/tcl8.6'
    os.environ['TK_LIBRARY'] = 'c:/python36/tcl/tk8.6'
    include_files=['c:/python36/DLLs/tcl86t.dll', 'c:/python36/DLLs/tk86t.dll']
 
 
setup(
    name='QuickWho',
    verson = '7.0.0',
    description = 'Whois client',
    options={
            'build_exe': {'include_files': include_files},
            'bdist_mac': {'bundle_name': 'QuickWho', 'iconfile': 'QuickWho.icns'}
            },
    executables=[Executable('QuickWho.py', base=base, icon=icon)]
)







|
|
|
|




|







12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    icon = None
    base = None
    include_files = [('/Library/Frameworks/Tcl.framework/Versions/8.6/Resources/Scripts', 'tcl8.6'),
                                ('/Library/Frameworks/Tk.framework/Versions/8.6/Resources/Scripts', 'tk8.6'),
                                ]
    
if sys.platform == 'win32':
    icon = 'quickwho.ico'
    os.environ['TCL_LIBRARY'] = 'C:/Users/Kevin/AppData/Local/Programs/Python/Python38/tcl/tcl8.6'
    os.environ['TK_LIBRARY'] = 'C:/Users/Kevin/AppData/Local/Programs/Python/Python38/tcl/tk8.6'
    include_files=['C:/Users/Kevin/AppData/Local/Programs/Python/Python38/DLLs/tcl86t.dll', 'C:/Users/Kevin/AppData/Local/Programs/Python/Python38/DLLs/tk86t.dll']
 
 
setup(
    name='QuickWho',
    version = '7.0.0',
    description = 'Whois client',
    options={
            'build_exe': {'include_files': include_files},
            'bdist_mac': {'bundle_name': 'QuickWho', 'iconfile': 'QuickWho.icns'}
            },
    executables=[Executable('QuickWho.py', base=base, icon=icon)]
)