You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How add new function for console Py.Html
First add the new command to the command list in the PyHtmlConsole.py module. LISTCOMMAND= ["help","create.html","exit","create.html.menu","create.html.form","set.path","link.css","create.element","create.html.responsive"]
After inside the ExecuteCommand method, add an if with the new command you created. if command == "create.html.form": pass
Following are the commands you should add to the list and variable:
create.css
create.css.rule.class
create.css.rule.id
responsive.create
After creating these commands, later we will implement their use.
The text was updated successfully, but these errors were encountered:
Within ifs put another if to detect if the location has been set: if(dt._localHtmlFiles[con._SETFILE]!="0"): else:
Attach at the end of each if and within each else a print on the screen to show that the operation was successful: print("Css file was created successfully")
Customize the message according to the operation that was done
For example: if command == "link.css": if(dt._localHtmlFiles[con._SETFILE]!="0"): print("Css Link anexed with susefull") pass else: print("Css Link anexed with susefull") pass
Create news functions for PyHtmlConsole.py
Targets: https://github.com/FelipeKatao/Py.Html/blob/master/PyHtmlConsole.py and https://github.com/FelipeKatao/Py.Html/blob/master/Framework/StyleTools.py
How add new function for console Py.Html
First add the new command to the command list in the PyHtmlConsole.py module.
LISTCOMMAND= ["help","create.html","exit","create.html.menu","create.html.form","set.path","link.css","create.element","create.html.responsive"]
After inside the ExecuteCommand method, add an if with the new command you created.
if command == "create.html.form": pass
Following are the commands you should add to the list and variable:
After creating these commands, later we will implement their use.
The text was updated successfully, but these errors were encountered: