How to get ScrollRegion to adjust w/ window-size?

2005-08-05 Thread syed_saqib_ali
Below is a simple code snippet showing a Tkinter Window bearing a canvas and 2 connected scrollbars (Vertical & Horizontal). Works fine. When you shrink/resize the window the scrollbars adjust accordingly. However, what I really want to happen is that the area of the canvas that the scrollbars sho

Tough Tkinter Scrollregion vs Window Size Problem

2005-08-04 Thread syed_saqib_ali
Below is a simple code snippet showing a Tkinter Window bearing a canvas and 2 connected scrollbars (Vertical & Horizontal). Works fine. When you shrink/resize the window the scrollbars adjust accordingly. However, what I really want to happen is that the area of the canvas that the scrollbars

Tough Scrolling question with Tkinter

2005-06-14 Thread syed_saqib_ali
Please take a look at and run the code snippet shown below. It creates a canvas with vertical & Horizontal scroll-bars. If you shrink the window to smaller than the area of the canvas, the scroll-bars work as advertised. That's great. However, if you click the Left Mouse button, it calls code whi

How to maintain scroll-region view while changing canvas size?

2005-06-07 Thread syed_saqib_ali
Please take a look at and run the code snippet shown below. It creates a canvas with vertical & Horizontal scroll-bars. If you shrink the window to smaller than the area of the canvas, the scroll-bars work as advertised. That's great. However, if you click the Left Mouse button, it calls code w

How to add a shapefile to an existing ArcMap 9.x project using Python?

2005-03-16 Thread syed_saqib_ali
Hi. I have an Instance of ArcMap 9.0 running. I also have a shapefile named myShape (actually corresponding to 4 files on the disk: myShape.dbf, myShape.shp, myShape.pnt and myShape.shx) I would like to write some Python code that inserts myShape into the running instance of ArcMap9.0 as

Why does interpreter flub

2005-03-01 Thread syed_saqib_ali
I have a file named testPython.py as shown below. I have shown a trace of the Interpreter Session in which I import the modules from this file using the command: "from testPython import *" When I do this, and modify a global variable from within a function, it seems that the interpreter is

How to enable Python Scripts with MS IIS Web Server?

2005-02-04 Thread syed_saqib_ali
Hi. I have MS Windows Server 2003, Enterprise Edition. It has MS Management Console 2.0, Version 5.2 and IIS Manager 6.0 I have a directory called "myDirs". Within this directory are 2 files: 1) index.pl (a perl script) 2) index.py (a python script whose first line is "#!C:\Python21\pythonw.e