Commit Graph

13 Commits

Author SHA1 Message Date
Florian Festi 0d07f48b7f Remove .open() call from the .render() method
Having this call there was necessary in the past as the open() method would
need the canvas size as a parameter. This is now determined automatically
after rendering.

Still calling open() is deprecated but won't result in an error.
2019-02-08 17:43:15 +01:00
Florian Festi 861c8451e2 Remove call to .close() from .render() method
There is really no need for all the generator to care
Still calling it is deprecated but won't result in an error
2019-02-08 17:32:04 +01:00
Florian Festi bfd7c3eaaa Use os.path.join for Windows compatibility 2018-08-28 07:32:39 +02:00
Marius Bergmann b13cef20ed Refactor `boxes` start script
- split up into separate functions
2017-11-29 20:04:21 +01:00
Florian Festi bffd732c3f scripts/boxes: Use generator classes instead of main functions
Make Boxes.parseArgs more robust
--list generators by UI group.
Pass arguments explicitly instead of fiddling with sys.argv
2017-04-05 04:33:28 +02:00
Florian Festi 10cad241ef Fix boxes script when passing no param 2017-03-13 11:41:12 +01:00
Florian Festi 6cae3d7dc7 Filter out --id passed from Inkscape
Move message about missing generator to stderr
2017-02-26 18:54:34 +01:00
Florian Festi e0a4d06c43 Hackish way to make scriptsboxes to work with Inkscape. 2017-02-23 17:38:26 +01:00
Florian Festi b9fef2c6e1 Follow symlinks when determining path of boxes library from executable 2017-02-23 17:38:26 +01:00
Florian Festi 6dd482be9c Generate the list of generators automatically
Generate new traylayout class to make this work with the web interface
Minor fix to not error out in web interface for non existing doc string
2016-07-31 17:18:17 +02:00
Marius Bergmann 4b487014d0 Fix project for use within virtualenv
- Use /usr/bin/env to determine path to python3 instead of a hard-coded
  path, so that virtualenv stubs work properly.
- Change package name to 'boxes' ('boxes.py' did not work within
  virtualenv).
2016-07-12 13:13:03 +02:00
Florian Festi 8188821332 Clarify error message for unknown generator names 2016-06-22 23:13:50 +02:00
Florian Festi 70bb1bf5af Move box generators into boxes.generators sub module 2016-03-25 22:30:07 +01:00