Skip to content

Commit

Permalink
update button order
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardFrangenberg committed Dec 10, 2018
1 parent 1dfae29 commit c3685b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Prism/Scripts/PrismCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -2930,6 +2930,7 @@ def updatePrism(self, filepath="", source=""):

if os.path.exists(targetdir):
shutil.rmtree(targetdir, ignore_errors=False, onerror=self.handleRemoveReadonly)

try:
import psutil
except:
Expand Down
6 changes: 3 additions & 3 deletions Prism/Scripts/PrismSettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,16 +752,16 @@ def curPshowList(self, prog):
def showUpdate(self):
updateDlg = QDialog()
updateDlg.setWindowTitle("Update Prism scripts")
updateDlg.l_options = QLabel("- Update from .zip: Select a .zip file, which contains the Prism scripts. You can download .zip files with the Prism scripts from the GitHub repositoy.\n\n- Update from GitHub: Downloads the latest version from GitHub. This is definitely the latest version, but may include experimental features.")
updateDlg.b_zip = QPushButton("Update from .zip")
updateDlg.l_options = QLabel("- Update from GitHub: Downloads the latest version from GitHub. This is definitely the latest version, but may include experimental features.\n\n- Update from .zip: Select a .zip file, which contains the Prism scripts. You can download .zip files with the Prism scripts from the GitHub repository.")
updateDlg.b_github = QPushButton("Update from GitHub")
updateDlg.b_zip = QPushButton("Update from .zip")
lo_update = QVBoxLayout()
lo_buttons = QHBoxLayout()
w_buttons = QWidget()
w_buttons.setLayout(lo_buttons)
lo_buttons.addWidget(updateDlg.l_options)
lo_buttons.addWidget(updateDlg.b_zip)
lo_buttons.addWidget(updateDlg.b_github)
lo_buttons.addWidget(updateDlg.b_zip)
lo_update.addWidget(updateDlg.l_options)
lo_update.addWidget(w_buttons)
updateDlg.setLayout(lo_update)
Expand Down

0 comments on commit c3685b2

Please sign in to comment.