Skip to content

Commit

Permalink
Add simple tooltip, add another app and config
Browse files Browse the repository at this point in the history
  • Loading branch information
csm10495 committed Sep 12, 2021
1 parent 7b1361f commit 0e9f2df
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions cappinstaller/choco.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@
'Path Copy Copy': 'path-copy-copy',
'Process Explorer': 'procexp',
'PuTTY' : 'putty',
'Python 2': 'python2 /InstallDir "C:\Python27"',
'Python 3.7': 'python --version 3.7.0 --params "/InstallDir:"C:\Python37"',
'Python 3.8': 'python --version 3.8.0 --params "/InstallDir:"C:\Python38"',
'VNC Viewer': 'vnc-viewer',
'Python 2': 'python2 /InstallDir "C:/Python27"',
'Python 3.7': 'python --version 3.7.0 --params "/InstallDir:C:/Python37"',
'Python 3.8': 'python --version 3.8.0 --params "/InstallDir:C:/Python38"',
'Python 3.9': 'python --version 3.9.7 --params "/InstallDir:C:/Python39"',
'Resource Hacker': 'reshack',
'ScreenToGif': 'screentogif',
'Skype': 'skype --version 7.41.0.10101',
'Steam': 'steam',
Expand All @@ -64,6 +65,7 @@
'Visual Studio 2019 Community': 'visualstudio2019community visualstudio2019-workload-nativecrossplat visualstudio2019-workload-nativedesktop visualstudio2019-workload-universal windows-sdk-10.1',
'Visual Studio 2019 Enterprise': 'visualstudio2019enterprise visualstudio2019-workload-nativecrossplat visualstudio2019-workload-nativedesktop visualstudio2019-workload-universal windows-sdk-10.1',
'VLC': 'vlc',
'VNC Viewer': 'vnc-viewer',
'Windows Terminal': 'microsoft-windows-terminal',
'Wget' : 'wget',
'WinDirStat': 'windirstat',
Expand Down
2 changes: 1 addition & 1 deletion cappinstaller/combobox_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_list_of_list_of_checkboxes(self):
max_display_name_length = len(max(list_of_str, key=lambda x: len(x) if x is not None else 0) or '')
for idx, y in enumerate(list_of_str):
if y is not None:
list_of_str[idx] = sg.Checkbox(key=f'{self.tag}_{y}', text=y, size=(max_display_name_length, 1))
list_of_str[idx] = sg.Checkbox(key=f'{self.tag}_{y}', text=y, size=(max_display_name_length, 1), tooltip=f'{self.tag}: {y}')
else:
list_of_str[idx] = sg.Text()
list_of_list_of_str[h_idx] = list_of_str
Expand Down
8 changes: 5 additions & 3 deletions cappinstaller/misc_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Home to MiscCommand and friends for cAppInstaller
'''

import getpass
import queue
import pathlib
import tempfile
Expand Down Expand Up @@ -67,7 +68,8 @@ def install(self, output_queue: queue.Queue) -> int:
# todo:
# Add C:/Python/bin to PATH
MISC_COMMANDS = {
'Add Admin Cmd Prompt via Shift/Right Click' : RegistryInstallCommand(ADD_ADMIN_CMD_PROMPT_VIA_SHIFT_RIGHT_CLICK_REG),
'Symlink Python3 -> Python3X' : SymlinkPython3ToPython3X(),
'Add C:/Python3 to System PATH' : MiscCommand(f'setx /m PATH "C:\Python3;C:\Python3\Scripts;%PATH%"'),
f'Add Admin Cmd Prompt via Shift/Right Click' : RegistryInstallCommand(ADD_ADMIN_CMD_PROMPT_VIA_SHIFT_RIGHT_CLICK_REG),
f'Symlink Python3 -> Python3X' : SymlinkPython3ToPython3X(),
f'Add C:/Python3 to System PATH' : MiscCommand(f'setx /m PATH "C:\Python3;C:\Python3\Scripts;%PATH%"'),
f'Chown C:/Python3 for {getpass.getuser()}' : MiscCommand(f'icacls C:/Python3 /t /q /grant "{getpass.getuser()}":(OI)(CI)F'),
}

0 comments on commit 0e9f2df

Please sign in to comment.