A Fixed Tk Text widget

2008-04-13 Thread Ron Provost
I have just completed and uploaded to the Tkinter wiki a Fixed version of the Tk Text widget called EnhancedText. This new widget (subclassed from Text) is intended to fix some of the quirks of the Text widget involving cursor movement. Namely, in Text, the cursor moves by paragraph rather

tkinter coordinates, conversion

2008-03-29 Thread Ron Provost
Is there any way in tkinter to convert between coordinate systems? Specifically, I'm refering to the canvas. I'm getting x and y's back in mouse events and I would like to convert them back to inches 'i', centemeters 'c', millimeters 'm' or points 'p'. Which I wish to use to provided

New Full Tkinter document editor widget -- suggestions, comments, etc.

2008-03-24 Thread Ron Provost
I've posted a demo (http://tkinter.unpy.net/wiki/StyledEditor). This demo creates a widget with full styled editing capabilities; sort of a mini-word processor. It runs as is on my WinXP machine with Python 2.5. The demo allows styling of any selected text via toolbars; just select the text,

Re: Removal of tkinter from python 3.0? [was: Fate of the repr module inPy3.0]

2008-03-20 Thread Ron Provost
I would really hate to see Tkinter removed from 3.0. Because it's part of the distribution and extremely easy to create simple GUIs I use it all the time. Isn't Python supposed to be a Batteries Included language? Can that be said anymore without a GUI library? And do we want to drop

RE: OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-11 Thread Ron Provost
The division between philosophy and science can be fine indeed. Philosophy and science are the two rigorous methods of inquiry into the fundamental nature of things (other methods include religion and superstition). Because of it's process, science limits itself to those questions which can

CoCoPy Release Candidate

2007-12-19 Thread Ron Provost
I'm happy to announce the CoCo/r for Python release candidate. CoCo/r is an scanner generator and LL(k) parser generator which has already been ported to many languages. CocoPy 1.1.0rc can be found in the Python Package Index. CoCo/r for Python now passes all tests in the official COCO test

Re: Rounding

2007-12-18 Thread Ron Provost
Adding 0.5, then converting to an int always works for me. x = 6.345 int( x + 0.5 ) 6 Ron - Original Message - From: katie smith [EMAIL PROTECTED] To: python-list@python.org Sent: Saturday, December 15, 2007 9:09 AM Subject: Rounding if i have a number 6.345 and i wanted it to

Re: finding dir of main .py file

2007-12-11 Thread Ron Provost
Thanks, didn't realize it would be quite so easy. - Original Message - From: Matt Nordhoff [EMAIL PROTECTED] To: ron.longo [EMAIL PROTECTED] Cc: python-list@python.org Sent: Tuesday, December 11, 2007 2:50 PM Subject: Re: finding dir of main .py file ron.longo wrote: Nope, maybe I'm

Is Python really a scripting language?

2007-12-11 Thread Ron Provost
OK, I don't mean to start any sort of war or flaming or anything here but I really need to discuss this with other afficionados of Python - I know none other than myself. I'm a software developer. Where I work, the dominant development language is Java with some mostly-legacy C/C++ software.

CoCoPy Beta released

2007-12-01 Thread Ron Provost
I would like to introduce CoCo/r to the Python world. CoCo/r is an scanner generator and LL(k) parser generator which has already been ported to many languages. CocoPy 1.0.3b1 can be found in the Python Package Index. Features: - The generated scanner and parser are completely independant.

Tkinter container frames

2007-12-01 Thread Ron Provost
I've been trying to figure out how to use the container option in a frame widget in conjunction with the use option with a Toplevel widget. Which according to the documentation I've read sounds like it will give me a Windows MDI like application with free-floating child windows within the

Tk 8.5

2007-11-26 Thread Ron Provost
Hello, According to the tk wiki, the final release of Tcl/Tk is just weeks away (see http://wiki.tcl.tk/12753). Does anyone know if the Tk enhancements will be in Python 2.6? Since I don't use tk but I do use Python and Tkinter (and Tix) extensively, I'm excited about these long-awaited

Re: Creating Table using Tkinter

2007-09-27 Thread Ron Provost
Ankit, Have you tried the HList (or one of the descendant widgets) in Tix? The Tix library includes quite a few additional widgets and it's part of the standard python distribution. Ron - Original Message - From: Ankit [EMAIL PROTECTED] Newsgroups: comp.lang.python To:

Tix HList missing at least one method

2007-08-28 Thread Ron Provost
According to the Tix documentation online, HList has an info_bbox() method which returns the bounding box of a given item in the HList. However, when I try to call this method, I get an attribute error. Looking at Tix.py I see that info_bbox() is not implemented. Hazarding a chance (mostly

idestudio

2007-06-27 Thread Ron Provost
Has anyone been able to download idestudio? Any link I find on google is broken. Thanks, Ron-- http://mail.python.org/mailman/listinfo/python-list

implementing callback function

2007-05-31 Thread Ron Provost
Within an application I'm working on. The app is written in multiple layers such that lower layers provided services to higher layers. Ideally in such an architecture, the high-level objects know about lower-level ones, but lower-level objects know nothing about the higher-level ones.

Circular imports

2007-05-28 Thread Ron Provost
Hello, I'm in the process of porting a project from Java to python. The original project is very poorly organized. Nearly each class is depentant upon nearly every other class. Before I go playing around with the logic by moving things around and cleaning up the code, I want to get it

Is python2.5's Tix wrapper broken?

2007-02-13 Thread Ron Provost
I have a piece of software I wrote some time ago using Python and the Tix wrapper. I just upgraded to Python 2.5 and to my surprise my software no longer functions. There's a problem with the Tix wrapper. Under a clean install of Python the following should display an empty root window on

Tkinter or Python issue?

2005-10-18 Thread Ron Provost
Hello, I'm using python 2.4.2 on Win XP Pro. I'm trying to understand a behavior I'm seeing in some Tkinter code I have. I've reduced my question to a small piece of code: #BEGIN CODE # import Tkinter as Tk import tkFont sampleText = Here is a test string. This is more

Synchronous/Asynchrnous Audio play with pymedia

2005-09-18 Thread Ron Provost
Hello, I'm developing a piece of software to assist illiteraate adults to learn to read. I'm trying to figure out how, if possible, to make audio playback asynchrnous but still controllable. I'm using python 2.4 with pymedia on XP. I started out with the example in the tutorials section of

custom Tkinter ListBox selectMode

2005-07-01 Thread Ron Provost
Hello, I've written a simple GUI which contains a listbox to hold some information. I've found that the click-selection schemes provided by Tkinter are insufficient for my needs. Essentiall I need to impletement a custom selectMode. As a first go, I've attempted to implement a