ASCII Designer
- ASCII Designer Manual
- Translating forms
- API documentation (autogenerated)
ascii_designerpackageascii_designer.autoframemoduleascii_designer.ascii_slicemoduleascii_designer.toolkitmoduleascii_designer.toolkit_tkmoduleascii_designer.toolkit_qtmoduleascii_designer.i18nmoduleascii_designer.list_modelmoduleascii_designer.tk_treeviewmoduleascii_designer.tk_treeeditmoduleascii_designer.tk_generic_varmoduleascii_designer.eventmodule
Changelog
Version 2.0.0
BREAKING: Rework event system.
Events are now strictly-typed. Instanciation events without prototype is not allowed anymore.
Do away with positional-/named conversion. I.e.
by_nameparameter is gone. Instead,*or/marker should be used in the prototype to make arguments keyword-only or positional-only. Not enforced yet for compatibility.Add-handler, remove-handler, trigger operations are now fully type-hinted.
Better handling of exceptions in event handlers. They can now be logged (default), printed or reraised either individiually or as a group.
Lots of typehinting was done. Stuff might have been broken. Other:
Fix missing implementation of
AutoFrame.f_translations_get_prefixed(). (Issue #28)AutoFrame: Setf_controls[""]on build ifparentis given.
Changelog up to v1.0
v1.0.0
It is now possible to define nested layouts in
f_body.Finally do the step to v1.0.
v0.6.1
Fix #25: doubleclick-to-edit on tree cell also opens/closes tree
Fix #20: Enter and Escape key press leaking out of tree edit box
v0.6.0:
Enhance Event system: Event can now be used as decorator; choose between positional-args and named-args behavior
Can set listvariable.allow_reorder to enable/disable reordering by dragging items. (tk/ttk only)
Can set listvariable.allow_sorting to enable/ disable GUI sorting. Default
True.Add Translation.get_prefix, Translations.get_exception and AutoFrame.f_translations_get_prefixed helpers.
Fix broken list sorting.
Fix exception when using “id:text” menu entries.
v0.5.2:
Add translation support.
v0.5.1:
TK: add
add_setuptoolkit option (similar tosetup_stylebut keeps the defaults)
ObsList: add tuple indexing (experimental).v0.5.0:
TK/TTK: Add
GenericVarsupporting automatic conversion and validated-hook; opt-in automatic update of control’s invalid state. See TK Textbox / Combobox conversion + validationintroduce
Toolkit.widget_classesattribute, allowing injection of custom widget subclassesexport
EventSource,CancelEvent,Invalid,nullable,gt0,ge0on package-levelv0.4.4:
Fix edit-widget placement issues in Tk Treeedit
Treeedit subwidgets are now ttk (i.e. stylable)
Treeedit
autoedit_addedpropertyFix icon “inheritance” on Windows
v0.4.3:
Fix
f_iconnot working on Windows (with.icofiles).Tk (choice only) dropdown: fire event immediately on selection, not on
FocusOut/ReturnpressChange virtual-value handling of placeholders. Placeholder “remembers” and returns what was assigned to it. Also, when assigned an unbuilt AutoFrame instance, it will automatically build it, reducing boilerplate for the typical embedding case.
v0.4.2:
Fix 2 issues in ListBindingTk related to editable lists.
v0.4.1:
Make tk_treeedit key bindings a class property (list) that can be modified. Fix crash on Windows due to nonexisting Keysym.
v0.4.0:
Refactor internal implementation of List Binding. Architecture simplified to ObsList (data model) and ListBinding classes.
Add basic editing capabilites to List / Tree view.
v0.3.4:
Add
setup_styleparameter to ToolkitTk for custom style setupFix #6: for some Tk controls, value change via code would trigger the control’s autoconnected handler.
v0.3.3:
Qt now depends on qtpy, not PyQt4 anymore.
set_toolkitcan set Options. Addfont_sizeandttk_themeoption for Tkinter.Can set window icon by f_icon property
v0.3.2:
Add “ttk” toolkit (which is actually
ToolkitTkwith a new option). YMMV.Add
f_on_buildandf_on_showhooksFix several bugs in control parser, esp. concerning labels.
v0.3.1: Qt Toolkit menu accelerators
v0.3.0: menus added (TBD: accelerators for Qt menus); fix Qt List crash
v0.2.0: rework of the list model
Developers
The project is located at https://github.com/loehnertj/ascii_designer
This is a hobby project. If you need something quick, contact me or better, send a pull request.