geoffysicist / courses4horses Goto Github PK
View Code? Open in Web Editor NEWEquestrian Showjumping Stuff
License: GNU General Public License v3.0
Equestrian Showjumping Stuff
License: GNU General Public License v3.0
Try using reportlab to convert to pdf
https://www.reportlab.com/dev/opensource/rl-toolkit/
try saving the canvas as a postscript file then printing using win32print.
see https://gist.github.com/aleroddepaz/6089708
This code example from http://timgolden.me.uk/python/win32_how_do_i/print.html
import os, sys
import win32print
printer_name = win32print.GetDefaultPrinter ()
#
# raw_data could equally be raw PCL/PS read from
# some print-to-file operation
#
if sys.version_info >= (3,):
raw_data = bytes ("This is a test", "utf-8")
else:
raw_data = "This is a test"
hPrinter = win32print.OpenPrinter (printer_name)
try:
hJob = win32print.StartDocPrinter (hPrinter, 1, ("test of raw data", None, "RAW"))
try:
win32print.StartPagePrinter (hPrinter)
win32print.WritePrinter (hPrinter, raw_data)
win32print.EndPagePrinter (hPrinter)
finally:
win32print.EndDocPrinter (hPrinter)
finally:
win32print.ClosePrinter (hPrinter)
adapt this for themedTK
https://github.com/not-dev/high-dpi-tkinter
save and open files as yaml: see implementation in C4HScore
this may be possible through ThemedTK
if not try
https://stackoverflow.com/questions/15462647/modify-the-default-font-in-python-tkinter
Open Sans or Raleway
use tkcalendar
Try his to dump the event information direct to yaml file
You may even dump instances of Python classes.
class Hero:
... def init(self, name, hp, sp):
... self.name = name
... self.hp = hp
... self.sp = sp
... def repr(self):
... return "%s(name=%r, hp=%r, sp=%r)" % (
... self.class.name, self.name, self.hp, self.sp)
print yaml.dump(Hero("Galain Ysseleg", hp=-3, sp=2))
!!python/object:main.Hero {hp: -3, name: Galain Ysseleg, sp: 2}
The drawing widget appears to be wx.DC and wx.PaintDC
https://wxpython.org/Phoenix/docs/html/wx.DC.html
This looks like a good tutorial
https://zetcode.com/wxpython/gdi/
Add Articles menu to main window for custom article
Save base info as yaml
Load default articles on startup
checkbox for EA, PCA, FEI, NZ?
Sections
recheck docstrings
sphinx/read the docs
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.