Skip to content

Commit

Permalink
Update help dialog content in wincuts.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LyubomirT committed May 1, 2024
1 parent 76572af commit 1c5717d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
17 changes: 17 additions & 0 deletions help.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<h1>WinCuts Help</h1>
<h2>Overview</h2>
<p>WinCuts is a Windows-native tool designed to enhance productivity by allowing users to set up and manage custom keyboard shortcuts for shell/cmd commands.</p>
<h2>How to Use</h2>
<ul>
<li><b>Set Shortcuts:</b> Enter a combination of keys and a command you wish to run. Toggle 'Window Patch' if needed.</li>
<li><b>Delete Shortcuts:</b> Select a shortcut and press the 'Delete' button.</li>
<li><b>System Tray:</b> Minimize the application to the system tray for a cleaner workspace. Right-click the tray icon to open or quit.</li>
</ul>
<h2>Window Patch</h2>
<p>The 'Window Patch' feature allows commands that require a specific window context to execute properly. It is particularly useful for applications that do not respond well to being launched via shortcuts due to their reliance on a specific startup environment. Use this feature with caution as it modifies the way commands are executed and can lead to unexpected behavior if used improperly.</p>
<h2>Uninstalling</h2>
<h3>Recommended</h3>
<p>Use the uninstaller provided in the installation directory to remove WinCuts from your system. This will ensure that all files and startup entries are properly cleaned up.</p>
<h3>Manual</h3>
<p>Go to the integration directory and run <b><u>cleanup.exe</u></b>. After that, you can safely delete the installation directory.</p>
<br>
17 changes: 2 additions & 15 deletions wincuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,8 @@ def initUI(self):
self.setWindowIcon(QIcon("logo.png"))

text_browser = QTextBrowser(self)
text_browser.setHtml("""
<h1>WinCuts Help</h1>
<h2>Overview</h2>
<p>WinCuts is a Windows-native tool designed to enhance productivity by allowing users to set up and manage custom keyboard shortcuts for shell/cmd commands.</p>
<h2>How to Use</h2>
<ul>
<li><b>Set Shortcuts:</b> Enter a combination of keys and a command you wish to run. Toggle 'Window Patch' if needed.</li>
<li><b>Delete Shortcuts:</b> Select a shortcut and press the 'Delete' button.</li>
<li><b>System Tray:</b> Minimize the application to the system tray for a cleaner workspace. Right-click the tray icon to open or quit.</li>
</ul>
<h2>Window Patch</h2>
<p>The 'Window Patch' feature allows commands that require a specific window context to execute properly. It is particularly useful for applications that do not respond well to being launched via shortcuts due to their reliance on a specific startup environment. Use this feature with caution as it modifies the way commands are executed and can lead to unexpected behavior if used improperly.</p>
<h2>Uninstalling</h2>
<p>Run <i>cleanup.exe</i> from the integration folder to safely uninstall the application.</p>
""")
data = open("help.html", "r").read()
text_browser.setHtml(data)
button_ok = QPushButton('OK', self)
button_ok.clicked.connect(self.accept)

Expand Down

0 comments on commit 1c5717d

Please sign in to comment.