
Napkin is a whiteboard service over PB. The server is nominally functional, and there's a pygame client which serves as proof of concept, though be warned it's hella ugly. The code, that is, as there isn't a GUI to insult ;) 1 is freehand-tool 2 is lines-tool (click some points, and then mouse2-click to send) T is text-tool (click, type, <ENTER> sends) I've only played with it over loopback so far. You can ooggle the code at ~acapnotic/src/napkin or http://twistedmatrix.com/users/acapnotic/src/napkin/ It goes without saying that this isn't release quality, I'm just letting you brave folks poke around in it since some have expressed curiosity.

radix asked me to post urls to the list. a simple pb chat server http://braznet.com/david/files/chatclient.py a simple pb chat client http://braznet.com/david/files/chatclient.py name: David Creswick website: http://braznet.com/david jabber id: davec@jabber.org

On Sun, Aug 05, 2001 at 05:24:03PM -0500, David C wrote:
a simple pb chat server http://braznet.com/david/files/chatclient.py
I'm pretty sure this first URL is supposed to be just 'chat.py', not 'chatclient.py' :-)
a simple pb chat client http://braznet.com/david/files/chatclient.py
-- Chris Armstrong carmstro@twistedmatrix.com http://twistedmatrix.com/~carmstro carmstro@dynup.net

On Sun, 5 Aug 2001, Chris Armstrong wrote:
yeah. and also the topic is supposed to be something else. name: David Creswick website: http://braznet.com/david jabber id: davec@jabber.org

On Sun, Aug 05, 2001 at 02:24:52PM -0700, Kevin Turner wrote:
Napkin is a whiteboard service over PB. The server is nominally functional, and [...]
and now there's a twisted.web.Resource napkin viewer, which relies on a PIL renderer. These modules (napkin.webkin and napkin.pil_viewer) are really much cleaner than the pygame_client is at the moment, so if you're interested in writing a napkin client, look there. Many of the finer details aren't implemented, but the bulk of it is there. However, the pygame_client is still the only thing available you can use to *draw* on the napkin, aside from typing in commands to send blots across the wire yourself. I'll likely try to clean up this code, but I'm not sure how far it will advance, due to a couple reasons. One being that if it's going to get a UI, I'd like a toolkit (roll-your-own pygame widget set just isn't as fun as it used to be), and pyui says it requires Python 2.1. Another point is that some of the drawing functions I want (e.g. ellipse) aren't available in the current pygame release 1.1, but are in pygame CVS, so it might be better to wait for a release there. It would probably make a lot of sense to write a napkin client on a canvas widget like Tk's or gnome's...
You can ooggle the code at ~acapnotic/src/napkin or http://twistedmatrix.com/users/acapnotic/src/napkin/
There may be a napkin server running on twistedmatrix.com as well, and a viewer to that server at http://twistedmatrix.com/users/acapnotic.twistd/napkin -- I would have called it "BackOfAnEnvelope", but it seemed a bit unwieldy.

Awesome work, kevin. I'm excited to see the more functional clients for this thing; I think we could probably use it as a development tool (especially given how nice it would be to have box-and-line diagrams describing PB object graphs) On Mon, 6 Aug 2001, Kevin Turner wrote:
I would have called it "BackOfAnEnvelope", but it seemed a bit unwieldy.
On the contrary, I think that 'napkin' goes quite well with the food metaphor of twisted.spread ;-) ______ __ __ _____ _ _ | ____ | \_/ |_____] |_____| |_____| |_____ | | | | @ t w i s t e d m a t r i x . c o m http://twistedmatrix.com/users/glyph

radix asked me to post urls to the list. a simple pb chat server http://braznet.com/david/files/chatclient.py a simple pb chat client http://braznet.com/david/files/chatclient.py name: David Creswick website: http://braznet.com/david jabber id: davec@jabber.org

On Sun, Aug 05, 2001 at 05:24:03PM -0500, David C wrote:
a simple pb chat server http://braznet.com/david/files/chatclient.py
I'm pretty sure this first URL is supposed to be just 'chat.py', not 'chatclient.py' :-)
a simple pb chat client http://braznet.com/david/files/chatclient.py
-- Chris Armstrong carmstro@twistedmatrix.com http://twistedmatrix.com/~carmstro carmstro@dynup.net

On Sun, 5 Aug 2001, Chris Armstrong wrote:
yeah. and also the topic is supposed to be something else. name: David Creswick website: http://braznet.com/david jabber id: davec@jabber.org

On Sun, Aug 05, 2001 at 02:24:52PM -0700, Kevin Turner wrote:
Napkin is a whiteboard service over PB. The server is nominally functional, and [...]
and now there's a twisted.web.Resource napkin viewer, which relies on a PIL renderer. These modules (napkin.webkin and napkin.pil_viewer) are really much cleaner than the pygame_client is at the moment, so if you're interested in writing a napkin client, look there. Many of the finer details aren't implemented, but the bulk of it is there. However, the pygame_client is still the only thing available you can use to *draw* on the napkin, aside from typing in commands to send blots across the wire yourself. I'll likely try to clean up this code, but I'm not sure how far it will advance, due to a couple reasons. One being that if it's going to get a UI, I'd like a toolkit (roll-your-own pygame widget set just isn't as fun as it used to be), and pyui says it requires Python 2.1. Another point is that some of the drawing functions I want (e.g. ellipse) aren't available in the current pygame release 1.1, but are in pygame CVS, so it might be better to wait for a release there. It would probably make a lot of sense to write a napkin client on a canvas widget like Tk's or gnome's...
You can ooggle the code at ~acapnotic/src/napkin or http://twistedmatrix.com/users/acapnotic/src/napkin/
There may be a napkin server running on twistedmatrix.com as well, and a viewer to that server at http://twistedmatrix.com/users/acapnotic.twistd/napkin -- I would have called it "BackOfAnEnvelope", but it seemed a bit unwieldy.

Awesome work, kevin. I'm excited to see the more functional clients for this thing; I think we could probably use it as a development tool (especially given how nice it would be to have box-and-line diagrams describing PB object graphs) On Mon, 6 Aug 2001, Kevin Turner wrote:
I would have called it "BackOfAnEnvelope", but it seemed a bit unwieldy.
On the contrary, I think that 'napkin' goes quite well with the food metaphor of twisted.spread ;-) ______ __ __ _____ _ _ | ____ | \_/ |_____] |_____| |_____| |_____ | | | | @ t w i s t e d m a t r i x . c o m http://twistedmatrix.com/users/glyph
participants (4)
-
Chris Armstrong
-
David C
-
Glyph Lefkowitz
-
Kevin Turner