ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: andrea valle <valle@di.unito.it>
Subject: minimal app to control layers
Date: Mon, 16 Oct 2006 18:44:42 +0200	[thread overview]
Message-ID: <54f2910c45021cd8e4f60454f3132640@di.unito.it> (raw)

Dear all,

Following the thread on layers:

(1. thanks to all)

2.

I use ConTeXt for many things, but quantitatively mostly for slides. 
Powerpoint is rude in its graphic abiltities but it has two features 
ConTeXt has not. First, you can draw on the screen. Second, you can 
import and stack images as you prefer. I'm not interested in the first 
feature, as I use a specific sw for drawing, and then import the 
result. But I am (sometimes) interested in the second one (let's call 
it "compositing").

In ConTeXt one can evidently use layers to exactly place and stack 
everything as needed (images, text). But, especially  while preparing 
slides (a book worth the efforts indeed), it can be tedious to wrote 
all the code stuff.

So, I created a minimal app in python using tkinter which allows to 
manipulate visually areas ("boxes" in the app terms) which can the be 
filled with images.
The app has a second window which continuously updates with conTeXt 
code generated by the gui.

The idea is that the user prepares a visual layer, then switches to 
code window,  copy the generated code and paste it in the .tex file. 
Finally code is definitively modified it in the source, as usual.

It's very simple, I've tested and it seems to work. But it can be buggy.

I don't know if it can of any interest to anyone in the communities.
In any case, comments related to whatsoever aspect are welcome.

Actually, I've not documented it but it should be obvious. GUI should 
be completely portable.
Sources are here:
http://www.semiotiche.it/andrea/membrana/boxer.zip

To run: >> python boxerController.py

Best

-a-


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
andrea.valle@unito.it

                 reply	other threads:[~2006-10-16 16:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54f2910c45021cd8e4f60454f3132640@di.unito.it \
    --to=valle@di.unito.it \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).