-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import os | ||
import subprocess | ||
from os.path import expanduser | ||
|
||
from gui.utils import open_file, get_configs_path | ||
|
||
|
||
def install_program(): | ||
print('>> '+' '.join(['pip', 'install', 'phulize']), end='\n\n') | ||
process = subprocess.Popen(['pip', 'install', 'phulize'], stdout=subprocess.PIPE).communicate()[0] | ||
print(process.decode('utf-8')) | ||
|
||
|
||
def go_to_settings_files(): | ||
return open_file(get_configs_path()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import textwrap | ||
|
||
import PySimpleGUI as sg | ||
|
||
|
||
def get_options_layout(): | ||
|
||
ic_text_value = '"pip install phulize". Any console information regarding installing the CLI will be displayed in the "RUN" tab.' | ||
wrapper = textwrap.TextWrapper(width=90) | ||
install_help_text = wrapper.fill(text=ic_text_value) | ||
|
||
cli_options = [ | ||
[sg.Button('Install CLI', tooltip='It will install this program\'s CLI if not installed already.')], | ||
[sg.Text(install_help_text)], | ||
[sg.Button('Open configurations folder', key='configs_folder')], | ||
[sg.Text('', key='error_folder')], | ||
] | ||
|
||
return [ | ||
[sg.Frame('CLI Advanced Options', layout=cli_options, font='Any 8', title_color='white', expand_x=True, expand_y=True)] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters