80 lines
3.3 KiB
Markdown
80 lines
3.3 KiB
Markdown
# 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. 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>
|
|
    
|
|
```<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. To handle window positioning, simply .glade file
|
|
located in the resources directory. Edit between lines 5 through 10 with the tag
|
|
<br>
|
|
    
|
|
```<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. To add an icon simply add or edit between lines 5
|
|
through 10 with either : <br>
|
|
    
|
|
```<property name="icon_name">application-exit</property> ``` <br>
|
|
             OR <br>
|
|
    ```<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. To allow/disallow resizing simply add or edit between
|
|
lines 5 through 10 with either : <br>
|
|
    
|
|
```<property name="resizable">True</property> ``` <br>
|
|
    
|
|
```<property name="resizable">False</property> ``` <br>
|
|
<hr>
|
|
5. To allow/disallow deletion of the window from the
|
|
window border simply add or edit between lines 5 10 with either : <br>
|
|
    
|
|
```<property name="deletable">True</property> ``` <br>
|
|
    
|
|
```<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. 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!
|