GUI development
This commit is contained in:
@@ -100,7 +100,7 @@ def get_source_gui():
|
|||||||
|
|
||||||
def upload_gui():
|
def upload_gui():
|
||||||
from modules.uploader import upload
|
from modules.uploader import upload
|
||||||
upload(True, ui, login_ui, UiMainWindow)
|
gui.popup('Upload', upload(True, ui, login_ui, UiMainWindow))
|
||||||
|
|
||||||
|
|
||||||
# Run functions on startup
|
# Run functions on startup
|
||||||
|
|||||||
@@ -156,8 +156,8 @@ def upload(is_gui=False, ui=None, login_ui=None, Ui_LoginWindow=None):
|
|||||||
|
|
||||||
elif r['message'] == 'Success':
|
elif r['message'] == 'Success':
|
||||||
print('[green]Success, your project is created. You can install it by running[/] '
|
print('[green]Success, your project is created. You can install it by running[/] '
|
||||||
'[i]horsy install {0}[/]'.format(request['name']))
|
'[i]horsy i {0}[/]'.format(request['name']))
|
||||||
return 'Success, your project is created. You can install it by running horsy install {0}'.format(
|
return 'Success, your project is created. You can install it by running horsy i {0}'.format(
|
||||||
request['name'])
|
request['name'])
|
||||||
|
|
||||||
elif 'already exists' in r['message']:
|
elif 'already exists' in r['message']:
|
||||||
|
|||||||
Reference in New Issue
Block a user