Skip to content

Latest commit

 

History

History
348 lines (155 loc) · 6.55 KB

dbpp.peditor.pumleditor.md

File metadata and controls

348 lines (155 loc) · 6.55 KB

dbpp.widgets package: GuiBaseClass - AutoScrollbar - Balloon - Ctext - LabEntry - RoText - Scrolled - SqlText - StatusBar - TableView - TextMixins - XTableView - XTreeView

dbpp.kroki - dbpp.kroki.KrokiEncoder - dbpp.utils - dbpp.utils.SqlUtils -

apps: dbpp.peditor

module peditor.pumleditor

Example GUI application to create diagram using the https://kroki.io webservice.

This is an example GUI class to demostrate the following principles of object oriented programming:

  • inheritance - inheriting from GuiBaseClass
  • composition - embedding KrokiEncoder
  • mixins - including TextMixins for the tk.Text widget

You should be able to run this application from the terminal direct if the dbpp package is installed completly using this syntax:

python -m dbpp.peditor ?DIAGRAMFILE?

The filename for a diagram is optional.

Here an image of the application:


function main

main(argv)

class text


class PumlEditor

method __init__

__init__(root)

method about

about()

method exit

exit()

method file_insert

file_insert()

method file_new

file_new(evt=None)

method file_open

file_open(filename='')

method file_save

file_save(evt=None)

method file_save_as

file_save_as()

method get_dia_type

get_dia_type()

method image_update

image_update()

method template_class

template_class()

method template_database

template_database()

method template_ditaa

template_ditaa()

method template_latex

template_latex()

method template_lists

template_lists(typecmd='listfonts', comment='https://plantuml.com/font')

method template_mindmap

template_mindmap()

method text2url

text2url()

method url2text

url2text()

This file was automatically generated via lazydocs.