Git Product home page Git Product logo

courses4horses's People

Contributors

geoffysicist avatar

Watchers

 avatar

courses4horses's Issues

Print:

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)

Dump classes direct to YAML

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}

source

rebase EAArticles to new module

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?

Design layout

Sections

  • arena
  • event info and logo
  • CD info and logo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.