Package: pydocument
PyDocumentEasy way to make a document with gui (tkinter)InstallingHere is a simple way to install:pip install pydocumentHere is a simple way to upgrade the package to the newest version:pip install pydocument --upgradeExamplefrompydocumentimportDocument,ARIALBOLDdocument=Document(1000,900,"Hello World")document.add_text("Hello World",ARIALBOLD)document.add_space()# document.add_newline() also worksdocument.add_text("""Hello world.. With PyDocument here, we can make such great documents..PyDocument is so simple, and so small.. It's really easy to make documentsusing PyDocument. It's really fun as well!""")document.start()DocumentationClassesDocumentDocumentObjectCreates new Document objectNote:All arguments are optional, so for example, the width will always be 200 unless you change it.Parameterswidth (Integer) = 200height (Integer) = 200title (String) = "pydocument"bg (String) = "white"ReturnsObjectExampleDocument(500,500,"Hello Title","gray")Example on changing specific argumentDocument(height=500,bg="gray")Propertiesapp (Tkinter) - The document / window you created.width (Integer) - The current width of the document / window.height (Integer) - The current height of the document / window.bg (String) - The background color of the document / window.Methodsstartset_titledisable_maximizeenable_maximizechange_widthchange_heightchange_sizeadd_textadd_arial_textadd_arial_bold_textadd_space / add_newlinestartStarts the application / document (mainloop of tkinter)ParametersNoneReturnsNoneExample.start()set_titleSets the title of the application / documentParameterstitle (String)ReturnsNoneExample.set_title("Hello Title")disable_maximizeDisables the user from maximizing the windowParametersNoneReturnsNoneExample.disable_maximize()enable_maximizeEnables the user from maximizing the windowParametersNoneReturnsNoneExample.enable_maximize()change_widthChanges the width of the windowParameterswidth (Integer)ReturnsNoneExample.change_width(500)change_heightChanges the height of the windowParametersheight (Integer)ReturnsNoneExample.change_height(500)change_sizeChanges the size of the windowParameterswidth (Integer)height (Integer)ReturnsNoneExample.change_size(500,500)add_textAdds text to the application / documentNote:Arguments 'font', 'font_size', and 'bg' are optionalParameterstext (String)font (String) = "Arial"font_size (Integer) = 20bg (String) = NoneReturnsNoneExample.add_text("Hello Text","Arial Bold",25,"gray")Example on changing specific argument.add_text("Hello Text",font_size=15)add_arial_textAdds arial font text to the application / documentNote:Arguments 'font_size' and 'bg' are optionalParameterstext (String)font_size (Integer) = 20bg (String) = NoneReturnsNoneExample.add_arial_text("Hello Text",25,"gray")Example on changing specific argument.add_arial_text("Hello Text",bg="gray")add_arial_bold_textAdds arial bold font text to the application / documentNote:Arguments 'font_size' and 'bg' are optionalParameterstext (String)font_size (Integer) = 20bg (String) = NoneReturnsNoneExample.add_arial_bold_text("Hello Text",25,"gray")Example on changing specific argument.add_arial_bold_text("Hello Text",bg="gray")add_spaceAdds a space to the application / documentNote:Arguments 'spaces' and 'bg' are optionalParametersspaces (Integer) = 1bg (String) = NoneReturnsNoneExample.add_space(3,"gray")Example on changing specific argument.add_space(bg="gray")add_newlineSame thing asadd_space.