Deprecated-Unsupported/Python Projects/gtk/Linux HTML Application/README.md

80 lines
3.3 KiB
Markdown
Raw Normal View History

2021-02-18 23:45:52 +00:00
# Linux-HTML-Application
A spin off of Windows HTML Application!
    By combining a small server with a GUI designed using
Python and Gtk glade one gets the core of LHTA. Using the small server one can
execute cgi scripts that can be based off of Bash, Pearl, Python or anything
else considered a scripting language. The only thing currently un-availabe is
using Php. <br>
<h2> NOTES:</h2>
1. &nbsp;&nbsp;&nbsp;&nbsp;To change the window frame, simply edit the .glade file
located in the resources directory. <br>Edit between lines 5 through 10 with the
tag <br>
&emsp;&emsp;&emsp;&emsp;
```<property name="type_hint">toolbar</property> ``` <br>
Edit the value with one bellow : <br>
- Normal = Remove the mentioned tag <br>
- Dialog = dialog <br>
- Menu = menu <br>
- Toolbar = toolbar <br>
- Splash Screen = splashscreen <br>
- Utility = utility <br>
- Dock = dock <br>
- Desktop = desktop <br>
- Drop Down Menu = dropdown-menu <br>
- Popup Menu = popup-menu <br>
- Tooltip = tooltip <br>
- Notification = notification<br>
- Combo = combo <br>
- Drag and Drop = dnd <br>
<br>
<hr>
2. &nbsp;&nbsp;&nbsp;&nbsp;To handle window positioning, simply .glade file
located in the resources directory. Edit between lines 5 through 10 with the tag
<br>
&emsp;&emsp;&emsp;&emsp;
```<property name="window_position">center</property> ``` <br>
Edit the value with one bellow : <br>
- None = Remove the mentioned tag<br>
- Center = center <br>
- Mouse = mouse <br>
- Always Center = center-always <br>
- Center on Parent = center-on-parent <br>
<hr>
3. &nbsp;&nbsp;&nbsp;&nbsp;To add an icon simply add or edit between lines 5
through 10 with either : <br>
&emsp;&emsp;&emsp;&emsp;
```<property name="icon_name">application-exit</property> ``` <br>
&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp; OR <br>
&emsp;&emsp;&emsp;&emsp;```<property name="icon">icon.png</property> ``` <br>
Icon_Name would be the name of a standard system icon. IE: refresh or play or
stop, etc. Just having Icon means you need to give the path of an icon -
Relative or otherwise.<br>
<hr>
4. &nbsp;&nbsp;&nbsp;&nbsp;To allow/disallow resizing simply add or edit between
lines 5 through 10 with either : <br>
&emsp;&emsp;&emsp;&emsp;
```<property name="resizable">True</property> ``` <br>
&emsp;&emsp;&emsp;&emsp;
```<property name="resizable">False</property> ``` <br>
<hr>
5. &nbsp;&nbsp;&nbsp;&nbsp;To allow/disallow deletion of the window from the
window border simply add or edit between lines 5 10 with either : <br>
&emsp;&emsp;&emsp;&emsp;
```<property name="deletable">True</property> ``` <br>
&emsp;&emsp;&emsp;&emsp;
```<property name="deletable">False</property> ``` <br>
<b><font color="#FF0000">Please Note</font> :</b> You can still kill the program
from a script if you so desire!
<br> <b><font color="#FF0000">Please Also Note </font> :</b>
It is urged to kill the program from the script as using the window border will
not kill the server!<br>
<hr>
6. &nbsp;&nbsp;&nbsp;&nbsp; You can change the server port to anything below
65535 but we recommend above 1024 as anything lower requires root privileges.
Simply edit the root directory lhta python file with any text editor and edit
line 27. By default the port is set to 8080. Also edit line 43 to match you new
port number!