Command line options
Prev The Glade2script Reference Next


Command line options



--clipboard
--combobox
-d / --debug
--embed
-g / --glade
--gtkbuilder
--gtkrc
-h / --help
--import
--infobulle
--libglade
--locale
-r / --retour
-s / --sh
--sourceview
--systray
--terminal-font
--terminal-redim
--terminal
--transparent
-t / --tree
--webcache
--webdownload
--webkit
--weblinkfilter
--webloaded
--webmenu
--weboverlink
--webrequest
--websubmenu


--clipboard
Activate the clipboard
option: CLIPBOARD(right)/PRIMARY(middle)/SENCONDARY
--clipboard=option
--combobox
Combobox options. (need with gtkbuilder)
Icons or images available.
Icon size can't be modify after the starting
Images size can be modify after the starting
One option per combobox.
--combobox='@@comboboxentry1@@col|ICON
--combobox='@@combobox1@@col|IMG
-d / --debug
Debugging console output
--embed
Embeds an application that supports it natively.
replace by %s the windowID needed by the embed app
--embed="_drawingarea1@@mplayer -idle -slave -quiet -vo xv -wid %s -input file=/tmp/fifomplay"
-g / --glade
Glade file
--gtkbuilder
Use the GtkBuilder librairy instead of Libglade (default).
--gtkrc
Use rc (or css with gtk3) style file instead of default style
gtkrcfile: absolute path of the Gtk rc style file
--gtkrc="stylefile"
-h / --help
Display the help
--import
Import as module instead of using the FIFO. détails
--import='path'
--infobulle
This option, if the callback query_tooltip has been specified, display a tooltip when mousing over the columns in a treeview
It can display text in a column in another overview. An option for treeview
col1: colonne cible
col2: colonne texte
In a survey of the column 1, the contents of column 2 will be displayed in the tooltip
--infobulle="@@treeview@@col1:col2,col:col2"
--libglade
Use the Libglade librairy instead of GtkBuilder (deprecated).
--locale
Folder path of the "locale".
-r / --retour
gtk commands for outputs.
like GET@ command, variables had _ instead dot.
-r '_text1.get_text, window1.get_position, treeview1'
${_text1_get_text}, ${window1_get_position} et ${treeview1}
-s / --sh
Nom du script associé
à utiliser pour donner un nom différent ou pour donner des arguments à ce script
sinon, le script associé devra porter le même nom que le glade et ce trouver dans le même dossier que ce dernier
-s './Test.sh "arg1" "arg2"'
--sourceview
Use a sourceview rather than a textview.
name: name of sourceview (textview)
box: display box
Gtk2 dependances: python-gtksourceview2.
Gtk3 dependances: gir1.x-gtksource
environnement variables loaded: G2S_SOURCEVIEW_STYLE, G2S_SOURCEVIEW_LANG
--sourceview="name,box"
--systray
Initialize a notify icon.
Use pygtk command SET@systray... or callbacks.
name: name of systray
menu: associated contextmenu or None
img: absolute image path or icon name
infobulle: tooltip text
--systray="name@menu@img@infobulle"
--terminal-font
Loads a font name string
--terminal-font='serif,monospace bold italic condensed 10'
--terminal-redim
Automatic terminal resize.
Add a viewport widget to the received container terminal
Add "redim_term" callback to the "size-allocate" signal of the viewport
--terminal
Activate VTE terminal
widget: widget container of the terminal, a hbox for example (don't forget _ before name)
width: terminal width
heigth: terminal heigth
--terminal='widget:widthxheight'
--transparent
Window background transparency. (not available for gtk3)
trans: 0 à 1
color: #ffffff
--transparent='name:trans/None:color/None'
-t / --tree
La gestion du treeview est assez complète, beaucoup de possiblités sont offertes, check, radio, progressbar, font, etc, etc ...
OPTIONS: More ...
Titre colonne [%%size] [%%editable]
ICON [%%size] [%%titre] [%%clic]
IMG [%%titre] [%%clic]
PROGRESS [%%Titre] [%%size]
COMBO [%%Titre] [%%size] [%%ligne] [%%ligne]
CHECK [%%Titre]
RADIO [%%Titre]
FONT
BACK
FORE
HIDE
@@treeview1@@ICON%%2%%clic|Colonne 1|Colonne 2%%100|HIDE|FONT
@@treeview1@@TitreColonne%%editable|FONT|BACK|FORE
-t '@@treeview@@option@@option@@option'
--webcache
Puts in cache filtered via the pattern
dossier: folder path or None (/tmp/webcache)
pattern: Regular expression
dialog: verbose / quiet
--­­­­webcache="webview:folder:pattern:dialog"
cache@url
--webdownload
Action to perform during a download request
choice: UserChoose/UserSave/GetLink
UserChoose calls the function with the save destination user choice
UserSave: saves a file directly from the user choice, also calls the function
GetLink: simple function call
--­­­­webdownload="webview:choice
UserChoose@destination, UserSave@destination, GetLink@url
--webkit
Ajoute un interpréteur html
Dépendances python-webkit.
Plusieurs interpréteurs peuvent être ajouté, une option pour chacun.
Utiliser les commandes pygtk pour webkit. ici
Pour appeler une fonction du script associé, lien => g2s:Mafonction arg
Pour appeler une commande glade2script, lien => G2S:EXIT@@
name: Nom donné pour le navigateur.
box: Le conteneur du navigateur, une hbox par exemple.
--webkit='name,box'
--weblinkfilter
Filters each user click on links via the pattern
pattern: Regular expression
--­­­­weblinkfilter="webview:pattern"
linkfilter@url
--webloaded
Calls the function when the html is loaded
--­­­­webloaded="webview,webview"
loaded
--webmenu
Creates a context menu
item:function:value/html
item: menu label
function: function to call
value: value of the element under the cursor
html: html of the element under the cursor
separator:None:None
--­­­­webmenu="webview::item::function::value/html"
--weboverlink
Calls the function when cursor goes above the links
--­­­­weboverlink="webview,webview"
overlink@url
--webrequest
Filters the http requests
pattern: All / item
All: calls the function with all the requests as argument
item: filters via the regular expression (does not display the filtered requests in the webview)
--­­­­webrequest="webview:pattern"
request@http://...
--websubmenu
Creates a context sub-menu
menuitem: label of the context menu from where the sub-menu will appear
item:function:value/html
item: menu label
function: function to call
value: value of the element under the cursor
html: html of the element under the cursor
separator:None:None
--­­­­websubmenu="menuitem::item::function::value/html"



Prev The Glade2script Reference Next