Skip to content

Commit

Permalink
Added a link to a help article when pyinstaller has finished
Browse files Browse the repository at this point in the history
+ Also added hover effects to buttons
~ Bumped version to push to PyPI
  • Loading branch information
brentvollebregt committed Jan 11, 2019
1 parent b20c73e commit ba1d0c6
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 5 deletions.
4 changes: 4 additions & 0 deletions auto_py_to_exe/web/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ <h1 class="section_header">Output</h1>
<textarea style="width: 100%; white-space: pre; overflow-y: hidden;"></textarea>
</div>

<div id="common-issue-link">
Something wrong with your exe? Read <a href="https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/" target="_blank">this post on how to fix common issues</a> for possible solutions.
</div>

<div id="btm_main_wrapper">
<button id="convert" class="btn_main" onclick="convert()">Convert .py to .exe</button>
<button id="openOutput" class="btn_main" style="display: none;" onclick="openOutputFolder()">Open Output Folder</button>
Expand Down
5 changes: 5 additions & 0 deletions auto_py_to_exe/web/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ function outputComplete() {
document.getElementById('btm_main_wrapper').style.gridGap = '4px';
document.getElementById('btm_main_wrapper').style.gridTemplateColumns = '1fr 1fr';
document.getElementById('openOutput').style.display = 'block';
// Show common issue link
document.getElementById('common-issue-link').style.display = 'block';
window.scrollTo(0, document.body.scrollHeight);
}

// When user clicks "Clear Output"
Expand All @@ -330,6 +333,8 @@ function clearOutput() {
// Hide open folder button
document.getElementById('btm_main_wrapper').style.display = 'block';
document.getElementById('openOutput').style.display = 'none';
// Hide common issue link
document.getElementById('common-issue-link').style.display = 'none';
}


Expand Down
39 changes: 35 additions & 4 deletions auto_py_to_exe/web/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,21 @@ button {
}

.btn_choice {
border: 3px solid rgb(72, 140, 196);
color: rgb(72, 140, 196);
border: 3px solid #458BC6;
color: #458BC6;
background: transparent;
padding: 8px;
margin-bottom: 2px;
transition: border 0.3s;
}

.btn_choice_greyed {
border: solid 3px #EEEEEE !important;
color: lightgrey !important;
border: solid 3px #EEEEEE;
color: lightgrey;
}

.btn_choice.btn_choice_greyed:hover {
border: 3px solid #458BC6;
}

.info_btn {
Expand All @@ -131,13 +136,23 @@ button {
letter-spacing: .1rem;
text-transform: uppercase;
white-space: nowrap;
transition: background-color 0.3s;
}

.btn_main:hover {
background-color: #1c79c7;
}

.btn_search {
background: transparent;
border: 2px solid #458BC6;
height: 27px;
padding: 0 15px;
transition: background 0.3s;
}

.btn_search:hover {
background: #1c79c71a;
}

input {
Expand Down Expand Up @@ -176,3 +191,19 @@ input {
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none;
}

#common-issue-link {
font-size: 12px;
text-align: center;
margin-bottom: 5px;
display: none;
}

#common-issue-link a {
text-decoration: none;
color: #458BC6
}

#common-issue-link a:hover {
color: #1c79c7;
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='auto-py-to-exe',
version='2.5.0',
version='2.5.1',
url='https://github.com/brentvollebregt/auto-py-to-exe',
license='MIT',
author='Brent Vollebregt',
Expand Down

0 comments on commit ba1d0c6

Please sign in to comment.