Re: How, python with Tk extensions enabled to import Tkinter

2008-02-27 Thread Martin Franklin
Murat Gunduz wrote: Dear list member, I am using a Linux machine (Fedora Core 7, 64 bit): Linux 2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 14:56:37 EDT 2007 x86_64 Fedora ships ready built Tk/Tcl and Tkinter RPM's so use the Package Updater (search for tkinter) or command line 'yum install

Re: Acting like button are being pressed (BUT THEY ARE NOT) Please Help

2008-02-22 Thread Martin Franklin
self.entry00.bind('Button-1', self.leftClick(self.entry00, 0, 0)) # bind left mouse click Difficult to say for sure due to excessive code wrapping.. ;) but I would say that these bind methods are calling the left and right Click methods... rather than bind'ing them to the entry

Re: Tix Note Book

2006-03-06 Thread Martin Franklin
[EMAIL PROTECTED] wrote: hi am using Tix notebook and i have two frames in that. am adding some widgets in to both of the frames. now i want to delete all of the widgets in one of the frame. i dont want to delete the frame, but its childres. so how can i get the sub widgets within that

Re: logging to a text widget

2006-03-02 Thread Martin Franklin
Alexandre Guimond wrote: Hi. I'm using the logging package. I would like to send my log messages to a Text widget creating using Tkinter. I was wondering if there was a logging handler class that would do this. It seems that the standard handlers do not support this. Has anyone tried to do

Re: regular expresson for Unix and Dos Lineendings wanted

2006-02-24 Thread Martin Franklin
Franz Steinhaeusler wrote: On Thu, 23 Feb 2006 14:46:20 +0100, Franz Steinhaeusler [EMAIL PROTECTED] wrote: Hello, I need a regularexpression, which trims trailing whitespaces. While with unix line endings, it works; but not with Window (Dos) CRLF's: Thank you all for the replies. But

Re: Tkinter canvas size determination

2006-02-24 Thread Martin Franklin
Dean Allen Provins wrote: Cameron: Cameron Laird wrote: In article [EMAIL PROTECTED], Dean Allen Provins [EMAIL PROTECTED] wrote: I need to determine the size of a canvas while the process is running. Does anyone know of a technique that will let me do that? .

Re: regular expresson for Unix and Dos Lineendings wanted

2006-02-23 Thread Martin Franklin
Franz Steinhaeusler wrote: Hello, I need a regularexpression, which trims trailing whitespaces. While with unix line endings, it works; but not with Window (Dos) CRLF's: import re retrailingwhitespace = re.compile('(?=\S)[ \t]+$', re.MULTILINE) 1) Windows r=erewr\r\nafjdskl

Re: regular expresson for Unix and Dos Lineendings wanted

2006-02-23 Thread Martin Franklin
Franz Steinhaeusler wrote: On Thu, 23 Feb 2006 13:54:50 +, Martin Franklin [EMAIL PROTECTED] wrote: r=erewr\r\nafjdskl 'erewr\r\nafjdskl' 2) Unix r=erewr\nafjdskl 'erewr\nafjdskl' why not use string methods strip, rstrip and lstrip because this removes only

Re: Little tool - but very big size... :-(

2006-02-21 Thread Martin Franklin
Durumdara wrote: Hi ! I have a problem. I have a little tool that can get data about filesystems and wrote it in python. The main user asked me a GUI for this software. This user is needed a portable program, so I create this kind of the software with Py2Exe. But it have very big

Re: Little tool - but very big size... :-(

2006-02-21 Thread Martin Franklin
Martin Franklin wrote: Durumdara wrote: Hi ! I have a problem. I have a little tool that can get data about filesystems and wrote it in python. The main user asked me a GUI for this software. This user is needed a portable program, so I create this kind of the software with Py2Exe

Re: Downloading files using urllib in a for loop?

2006-02-15 Thread Martin Franklin
[EMAIL PROTECTED] wrote: Hi, I'm using Python 2.3 on Windows for the first time, and am doing something wrong in using urllib to retrieve images from urls embedded in a csv file. If I explicitly specify a url and image name it works fine(commented example in the code), but if I pass in

Re: Downloading files using urllib in a for loop?

2006-02-15 Thread Martin Franklin
Martin Franklin wrote: [EMAIL PROTECTED] wrote: Hi, I'm using Python 2.3 on Windows for the first time, and am doing something wrong in using urllib to retrieve images from urls embedded in a csv file. If I explicitly specify a url and image name it works fine(commented example in the code

Re: Downloading files using urllib in a for loop?

2006-02-15 Thread Martin Franklin
[EMAIL PROTECTED] wrote: Thanks - but have printed and verified they are valid paths and filenames. One correction to the code I listed: theurl = imagepath[:-8] For some reason the values aren't being passed through urllib.urlretrieve properly but this makes no sense to me? A working

Re: HOWTO Send a string???

2006-01-23 Thread Martin Franklin
Sbaush wrote: Hi all. In my application I have to do implement a lot of networking in python My application can create with a GUI a XML file in a string.(and now my application can do it wow!!) This string has to be sended to another host. i need a python application that send this string

Re: Problem with FTPLib and incomplete files on some downloads

2006-01-17 Thread Martin Franklin
Peter A.Schott wrote: I download a lot of 4-6 KB files and regularly run into issues with files that don't get downloaded all the way or otherwise get corrupt. I do something like: RemoteList = nlstdir() for filename in RemoteList: LocalFile = open(filename, wb) LocalFile.write( get

Re: Can't import Tkinter module.

2006-01-10 Thread Martin Franklin
slomo wrote: I'm working on linux Fedora Core 3 with Python 2.3. I can't from Tkinter import * . And see only No modlue named Tkiner error. Of course I have tk/tcl 8.4. They works perfectly. Certainly, I don't have Tkinter module for Python. What should I do for it as I'm not a root? as

Re: Tkinter Scrollbar not working

2006-01-03 Thread Martin Franklin
Dustan wrote: I'm trying to get a scrollbar bound with a Frame, and I keep on getting a scrollbar, but it doesn't actually scroll. Some help, please? It can be tricky getting an empty frame to scroll, can you post your example code so that we might be more helpful. Here is an example of

Re: Tkinter Scrollbar not working

2006-01-03 Thread Martin Franklin
Dustan wrote: Martin Franklin wrote: Dustan wrote: I'm trying to get a scrollbar bound with a Frame, and I keep on getting a scrollbar, but it doesn't actually scroll. Some help, please? It can be tricky getting an empty frame to scroll, can you post your example code so that we might

Re: putting checkbuttons in a listbox

2005-12-21 Thread Martin Franklin
valen1260 wrote: I'd like to have a multicolumn listbox, with one column being a list of items and the other being a list of checkbuttons. The user could check his favorites and then shorten the list to show only the checked items. I have implemented the MultiListbox at

Re: Clearing the Tkinter Window

2005-12-16 Thread Martin Franklin
James Stroud wrote: Dustan wrote: I'm a newbie here, especially with Tkinter. I'm writing a program that has 3 phases, if you will, in which I would have to clear the window and insert new widgets. Is this possible, and if so, how? I'm writing my application class based on Frame, if that

Re: text manipulation

2005-12-16 Thread Martin Franklin
Johhny wrote: Hello, I am trying to write a script in python (to replace a perl script with limited functionality). Now I have some issues. Currently I am using the perl to load the file then regex parse certain lines to remove characters (uncomment lines and change variables). I would like

Re: tkinter: drop-down widget

2005-12-16 Thread Martin Franklin
James Stroud wrote: Alex Hunsley wrote: Can anyone recommend some code for creating drop-down menus in tkinter? To be absolutely clear, here's an example of a drop-down: http://www.google.co.uk/preferences?hl=en (see the language selection widget) I've found the odd bit of code here and

Re: text manipulation

2005-12-16 Thread Martin Franklin
Martin Franklin wrote: Johhny wrote: Hello, I am trying to write a script in python (to replace a perl script with limited functionality). Now I have some issues. Currently I am using the perl to load the file then regex parse certain lines to remove characters (uncomment lines and change

Re: Force Focus in Tkinter

2005-12-06 Thread Martin Franklin
annagel wrote: Thanks for the reply and as it turns out no I don't think I really do want to do this. I started working with tkinter after banging my head against the wall for a while with wxwindows so the whole thing ended up being a last minute change so I am trying to get most at least of

Re: Is Python string immutable?

2005-12-02 Thread Martin Franklin
Chris Mellon wrote: On 11/30/05, could ildg [EMAIL PROTECTED] wrote: In java and C# String is immutable, str=str+some more will return a new string and leave some gargabe. so in java and C# if there are some frequent string operation, StringBuilder/StringBuffer is recommanded. Will string

Re: Help!!! On Tkinter Menu problem!!!

2005-11-30 Thread Martin Franklin
Xuening wrote: I have a problem about menu by using Tkinter. I want to make a dynamic menu. That is when I create a new view/window, one menuitem will be added to the menu. and when I kill a window, the correponding menuitem will be deleted. I write a simple code and I can add menuitem now.

Re: How to make tkFileDialog GUI larger?

2005-11-28 Thread Martin Franklin
John Wheez wrote: Hi all, I'm using teh tkFileDialog to let teh user select a directory. We have long names which make it difficult to view the directories. For some reason the GUI windows doesn;t expand on Windows like it does on OS X or Linux. Is there a method to make the widths

Re: Understanding Python Documentation

2005-11-24 Thread Martin Franklin
Josh Cronemeyer wrote: On Thursday 24 November 2005 09:27 am, Simon Brunning wrote: On 24/11/05, Josh Cronemeyer [EMAIL PROTECTED] wrote: I have very little experience programming in python but considerable experience with java. One thing that is frustrating me is the differences in the

Re: Copy files to Linux server through ssh tunnel

2005-10-06 Thread Martin Franklin
[EMAIL PROTECTED] wrote: Hi ! I have some backup files on a server farm. I want to store these local backup files on a backup file server for safety's snake. These files are compressed zip files with 12 character length password. But my system admin asked me, how can I improve the safety

Re: about install wxPython in Redhat Linux AS 4

2005-09-28 Thread Martin Franklin
Leo Jay wrote: Dear All, I'd like to install wxPython in my Redhat AS 4, I have downloaded both wxPython-common-gtk2-unicode-2.6.1.0-fc2_py2.4.i386.rpm and wxPython2.6-gtk2-unicode-2.6.1.0-fc2_py2.4.i386.rpm packages from www.wxpython.org. After I installed these two packages

Re: determine if os.system() is done

2005-09-08 Thread Martin Franklin
Xah Lee wrote: suppose i'm calling two system processes, one to unzip, and one to “tail” to get the las t line. How can i determine when the first process is done? Example: subprocess.Popen([r/sw/bin/gzip,-d,access_log.4.gz]); last_line=subprocess.Popen([r/usr/bin/tail,-n

Re: reading the last line of a file

2005-09-08 Thread Martin Franklin
Xah Lee wrote: Martin Franklin wrote: import gzip log_file = gzip.open(access_log.4.gz) last_line = log_file.readlines()[-1] log_file.close() does the log_file.readlines()[-1] actually read all the lines first? Yes I'm afraid it does. i switched to system call with tail because

Re: reading the last line of a file

2005-09-08 Thread Martin Franklin
Martin Franklin wrote: Xah Lee wrote: Martin Franklin wrote: import gzip log_file = gzip.open(access_log.4.gz) last_line = log_file.readlines()[-1] log_file.close() does the log_file.readlines()[-1] actually read all the lines first? Yes I'm afraid it does. i switched to system

Re: reading the last line of a file

2005-09-08 Thread Martin Franklin
Martin Franklin wrote: Martin Franklin wrote: Xah Lee wrote: Martin Franklin wrote: import gzip log_file = gzip.open(access_log.4.gz) last_line = log_file.readlines()[-1] log_file.close() does the log_file.readlines()[-1] actually read all the lines first? Yes I'm afraid it does

Re: Printer List from CUPS

2005-09-08 Thread Martin Franklin
Mike Tammerman wrote: Hi, I want to get the printer list from CUPS. I found some ways using lpstat -p and http://localhost:631/printers but, these ways require some parsing and I am not sure, if the parsing works all the time. A pythonic way would be very helpful. Thanks, Mike

Re: Printer List from CUPS

2005-09-08 Thread Martin Franklin
Mike Tammerman wrote: I am using Ubuntu. pycups seems to be not existed any more. Mike Yeah as I said if you're using a redhat based distro... However you could try getting the redhat / fedora rpm that provides pycups and installing it? I would ask on the Ubuntu list, I know they are a

Re: determine if os.system() is done

2005-09-07 Thread Martin Franklin
Xah Lee wrote: suppose i'm calling two system processes, one to unzip, and one to “tail” to get the last line. How can i determine when the first process is done? Example: subprocess.Popen([r/sw/bin/gzip,-d,access_log.4.gz]); last_line=subprocess.Popen([r/usr/bin/tail,-n

Re: Python IDE's

2005-08-01 Thread Martin Franklin
Jon Hewer wrote: Hi I am yet to find a Python IDE (for both Windows and Mac) that I like. Any suggestions? Thanks See:= http://wiki.python.org/moin/PythonEditors For more help Thanks Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Problems with permissions etc

2005-07-27 Thread Martin Franklin
Hi Frank, Frank Millman wrote: Hi all This is not strictly a Python question, but this newsgroup feels like a family to me, so I hope that someone will be kind enough to respond to this, or at least point me in the right direction. While developing under linux, I use my own computer, as

Re: wxPythin installation woes

2005-07-22 Thread Martin Franklin
linuxfreak wrote: Hi all, Was working with python 2.3 in a fedora core 3 machine. I upgraded it to Fedora Core 4 with a clean install. So now I have python 2.4 installed. But when I try to install wxPython for python 2.4 using an rpm file i downloaded from the wxpython web site i get

Re: difficulty connecting to networked oracle database

2005-07-21 Thread Martin Franklin
yahibble wrote: Now, I am no Python expert but I have dabbled and I have spent a couple of days with another engineer unsuccessfully installing oracle drivers for MS ODBC on the win XP machine. It looked to me like ODBC was the best way to get a (free) python module to upload data to an

Re: How to kill easygui dialog?

2005-07-20 Thread Martin Franklin
[EMAIL PROTECTED] wrote: William, Thanks for the reply. No flames, but I am running on both Linux and Windows, so I need a x-platform solution. I thought I had it with easygui... Must try some other ideas Can you post an example... the following works for me... import easygui

Re: don't understand MRO

2005-06-24 Thread Martin Franklin
Uwe Mayer wrote: Thursday 23 June 2005 19:22 pm Terry Reedy wrote: [...] In the absence of other information, I would presume that none of the other classes have a move() method. move() is implemented in the class qtcanvas.QCanvasItem I checked the pyqt sources and it is linked via sip

Re: Tkinter Question

2005-06-16 Thread Martin Franklin
Fredrik Lundh wrote: [EMAIL PROTECTED] wrote: Thanks for all the help guys... I'm a bit confused as to the inner workings of the Tkinter system (I'm both a Python and a GUI n00b). I was hoping that by slapping the x on button python was doing some cool dynamic variable creation (i.e. creating

Re: Tkinter question

2005-06-15 Thread Martin Franklin
[EMAIL PROTECTED] wrote: I'm sure there must be a way to do this, but I can't figure it out for the life of me I'm writing a program where I would like to use a button's text field as part of an if statement. I set up my button like this: i = [ 7, 8,9, /, 4, 5, 6, *, 1, 2, 3, -, 0, .,

Re: Tkinter question

2005-06-15 Thread Martin Franklin
I realise I was a bit short on advice earlier... Martin Franklin wrote: [EMAIL PROTECTED] wrote: I'm sure there must be a way to do this, but I can't figure it out for the life of me I'm writing a program where I would like to use a button's text field as part of an if statement. I set up

Re: SMTP Test Rig ( SMTPRIG.PY v1.0 )

2005-06-10 Thread Martin Franklin
Tim Williams wrote: After a few posts recently, I have put together an SMTP test rig that will receive emails and either store them to a file, write them to a console, or both. Does anyone have any suggestions on where I can get it hosted as a utility for general public use? TIA

Re: SMTP help please

2005-06-07 Thread Martin Franklin
Ivan Shevanski wrote: I really can't figure out anything about the SMTP module. . .I think I'm in over my head( Im pretty new to python). Can someone show me a really(and I mean REALLY) basic tutorial for smtp or explain it? program: I want to make my program have a feedback form

Re: SMTP help please

2005-06-07 Thread Martin Franklin
Tim Williams wrote: - Original Message - From: Tim Williams [EMAIL PROTECTED] try: s.close() except pass Typo!! That should be s.quit() not s.close() :) and perhaps put into a finally: Mart -- http://mail.python.org/mailman/listinfo/python-list

Re: separate IE instances?

2005-06-07 Thread Martin Franklin
Chris Curvey wrote: Bummer. No change at all. (In fact, I can't even call Navigate() without throwing an error). I'm on win2k, if that makes any difference. I could be way off, but isn't windows one of those OS's that doesn't allow you to have two instances of IEXPORE.EXE running IOW the

Re: SFTP

2005-06-03 Thread Martin Franklin
Kornfeld Rick (sys1rak) wrote: Good Morning I have scoured the internet looking for an Python SFTP API. So far, I have been unable to find a suitable answer. Our needs are pretty basic. FTP TELNET are being removed from our environment and I need to utilize SFTP for file transfers.

Re: running tkinter

2005-06-01 Thread Martin Franklin
Jim Anderson wrote: I have just installed Fedora Core 3 on my pc. Python runs fine, but when I try to run tkinter the tkinter library is not found. I tried installing python 2.4.1 and could not get tkinter to run there either. When I look through the build directories for 2.4.1, I find a

Re: Has ComboBox ctrl in Tkinter?

2005-05-26 Thread Martin Franklin
Cameron Laird wrote: In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: ÒÊÃÉɽÈË [EMAIL PROTECTED] wrote: i have not find the ComboBox in Tkinter,has it? where to get the doc about how to use combobox ctrl? the Tix add-on contains a combobox:

Re: TAKE_FOCUS

2005-05-12 Thread Martin Franklin
phil wrote: WM_TAKE_FOCUS does not work on WinXP ?? I was sure I had used that on win before. Works on Linux. I have a function I need to run when the window gets the focus. How do you do that in Tkinter on Win32? Thanks Take a look at the module docs for Tkinter you will need the one

Re: tkinter puzzler

2005-05-12 Thread Martin Franklin
Paul Rubin wrote: I have a gui with a bunch of buttons, labels, the usual stuff. It uses the grid manager: gui = Frame() gui.grid() gui.Label().grid() # put some widgets into the gui ...# more widgets Now at the the very bottom of the gui, I want to add two more

Re: Does TKinter Have A Grid ?

2005-05-10 Thread Martin Franklin
Peter Moscatt wrote: Does TKinter have a Grid widget ? If not (as I assume), what is the alternative ? Pete Pete, If by grid you mean Table widget or Spreadsheet type widget then no Tk does not have one (therefore nor does Tkinter) However as luck would have it there are a couple of

Re: Tkinter weirdness item count

2005-05-03 Thread Martin Franklin
phil wrote: Using Tkinter Canvas to teach High School Geometry with A LOT of success. My drawing gets very slow after a lot of actions. For instance I have created code to rotate a set of objects about a rotation point. rotate 360 degrees starts to get slow after 720 degrees its

Re: How to prevent Tkinter frame resize?

2005-04-22 Thread Martin Franklin
[EMAIL PROTECTED] wrote: I am trying to prevent a user from resizing a frame beyond its natural size as given by winfo_reqwidth and winfo_reqheight, without any success. Can anyone make any suggestions, based on my code below? Thanks! from Tkinter import * class Table(Frame): def

Re: A smallish Tkinter question

2005-04-21 Thread Martin Franklin
[EMAIL PROTECTED] wrote: What I want: A little window to open with a 0 in it. Every second, the 0 should increment by 1. What I get: A one second delay, see the window with a 1 in it, and then nothing appears to happen. Never see the 0, never see a 2. Any quick clues? Thanks. Nick. (Python 2.4,

Re: The value of the entry widget doesn't get updated

2005-04-19 Thread Martin Franklin
Clara wrote: Hi, can somebody help me,..I have an assignment due next week but now I'm stuck with this problem I tried to get values from entry widget using the widgetcontrolvariable.get(),..but it seems that it won't work I can't print the value I input in the entry widget...However when

Re: Tk Listbox - Selected Item ?

2005-04-15 Thread Martin Franklin
Peter Moscatt wrote: Martin Franklin wrote: Peter Moscatt wrote: I am having trouble understanding the methods for the Listbox from Tk. If I was to select at item in the list using a mouse click (have already created the bind event) - what method returns the text of the selected item ? Pete Pete

Re: Tk Listbox - Selected Item ?

2005-04-14 Thread Martin Franklin
Peter Moscatt wrote: I am having trouble understanding the methods for the Listbox from Tk. If I was to select at item in the list using a mouse click (have already created the bind event) - what method returns the text of the selected item ? Pete Pete, pydoc Tkinter.Listbox snip |

Re: Northampton, UK

2005-04-12 Thread Martin Franklin
Fuzzyman wrote: Just on the off chance I thought I'd ask if there were any Pythoneers out there local to Northampton UK ? Best Regards, Fuzzy http://www.voidspace.org.uk/python I'm just over the border (Bedfordshire) but like a lot of people commute :-( --

Re: logging as root using python script

2005-04-07 Thread Martin Franklin
Luis Bruno wrote: Raghul wrote: What I need is when I execute a script it should login as root and execute my command and logout from root to my existing account. I'm not sure of what you need, so I'll assume your *whole* .py script needs root priviledges. In this case, you can configure sudo(8)

Re: check interpreter version before running script

2005-04-05 Thread Martin Franklin
F. Petitjean wrote: Le Tue, 05 Apr 2005 08:57:12 -0400, rbt a écrit : Is there a recommended or 'Best Practices' way of checking the version of python before running scripts? I have scripts that use the os.walk() feature (introduced in 2.3) and users running 2.2 who get errors. Instead of

Re: Windows, Python and low level networking

2005-03-23 Thread Martin Franklin
[EMAIL PROTECTED] wrote: Is it possible to have low level netwoking with python under Windows? Like raw sockets? Is it possible to send a single packet using python under windows? Thank you Yes http://www.python.org/doc/2.4/lib/module-socket.html --

Re: Windows, Python and low level networking

2005-03-23 Thread Martin Franklin
Peter Hansen wrote: [EMAIL PROTECTED] wrote: Is it possible to have low level netwoking with python under Windows? Like raw sockets? Is it possible to send a single packet using python under windows? Google is your friend: Try searching with python sockets, for example... (You *have* heard of

Re: Text-to-speech

2005-03-21 Thread Martin Franklin
Charles Hartman wrote: Maybe you can bind Festival (http://www.cstr.ed.ac.uk/projects/festival/download.html) with SWIG. Presumably somebody could; at this point it's well beyond me. But thank you for the suggestion. Charles Hartman http://cherry.conncoll.edu/cohar There is tkfestival

Re: Python becoming less Lisp-like

2005-03-15 Thread Martin Franklin
Tim Daneliuk wrote: In-Reply-To: [EMAIL PROTECTED] X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Nick Craig-Wood wrote: Torsten Bronger [EMAIL PROTECTED] wrote: The current snapshot

Re: Tkinter wrappers for TkTreeCtrl and Tile

2005-03-15 Thread Martin Franklin
Harlin Seritt wrote: I was looking at the Tcl/Tk sourceforge page and found that there were a couple of new widgets being produced for Tcl 8.5. Does anyone know if there are any Tkinter wrappers somewhere? thanks, Harlin Harlin, I can't see the web page saying these will be included in Tk 8.5 can

Re: Tkinter wrappers for TkTreeCtrl and Tile

2005-03-15 Thread Martin Franklin
Harlin Seritt wrote: Martin, Take a look here: http://mail.python.org/pipermail/tkinter-discuss/2004-March/10.html It is a well-known post from what I understand. You may have already seen it before. Actually, (as I'm looking at a 8.4 demo set from ActiveTcl distribution), it seems the Tree

Re: Tkinter wrappers for TkTreeCtrl and Tile

2005-03-15 Thread Martin Franklin
Harlin Seritt wrote: Martin, If I may ask, who actually works on the Tkinter module? Is there a certain group that does this? I'm just curious as I've never been able to find this information. I know there are, of course, someone who develops Tk but just not sure who does this on the Python side.

Re: Tkinter wrappers for TkTreeCtrl and Tile

2005-03-15 Thread Martin Franklin
Harlin Seritt wrote: (snip) That said I have got a Tile Button example working (and I can change it's style) so perhaps not that much work Do you happen to have a sampling of this that I can get my hands on?? I've cc'd the tkinter mailing list to see if there is any more interest over there...

Re: Listbox fill=BOTH expand=YES (Tkinter)

2005-03-14 Thread Martin Franklin
Harlin Seritt wrote: I am trying the following: Listbox(parent).pack(fill=BOTH, expand=YES) I notice that the listbox will fill on the X axis but will not on the Y axis unlike other widgets. Is there any way to force this? thanks, Harlin Harlin, It should expand (and fill ) in both directions have

Re: Searching for a ComboBox for Tkinter?

2005-03-13 Thread Martin Franklin
Harlin Seritt wrote: I've created a ghetto-ized ComboBox that should work nicely for Tkinter (unfortunately no dropdown capabilities yet). I've found why it's such a pain in the @ss to create one. You have to re-create common methods and make sure they're mapped to the right component (inside this

Re: Bind Escape to Exit

2005-03-13 Thread Martin Franklin
Kent Johnson wrote: Binny V A wrote: Hello Everyone, I am new to python and I am trying to get a program to close a application when the Escape Key is pressed. Here is a version that works. The changes from yours: - Bind Escape, not Key-Escape These amount to the same thing AFAIK - Bind the key

Re: Searching for a ComboBox for Tkinter?

2005-03-13 Thread Martin Franklin
Martin Franklin wrote: Harlin Seritt wrote: I've created a ghetto-ized ComboBox that should work nicely for Tkinter (unfortunately no dropdown capabilities yet). I've found why it's such a pain in the @ss to create one. You have to re-create common methods and make sure they're mapped to the right

Re: Huge performance gain compared to perl while loading a text file in a list ...!?

2005-03-13 Thread Martin Franklin
Paul Rubin wrote: Marc H. [EMAIL PROTECTED] writes: I'm fairly new to python, and don't know much of its inner working so I wonder if someone could explain to me why it is so much faster in python to open a file and load it in a list/array ? My guess is readlines() in Python is separating on

Re: basic tkinter/Windows question

2005-02-22 Thread Martin Franklin
Paul Rubin wrote: I find myself having to write some code on Windows :-(. To alleviate the pain, at least I get to use Python for some of it. I'm trying to write a simple application, say eggs.py. It pops a tkinter gui and lets the user do some stuff. The system has Python installed so I don't

Re: python connect to server using SSH protocol

2005-02-08 Thread Martin Franklin
Simon Anders wrote: Hi Laszlo Zsolt Nagy wrote: [EMAIL PROTECTED] wrote: How can python connect to server which use SSH protocol? BIG SNIP There should be a better way. Simon There is : pexpect! http://pexpect.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: convert ftp.retrbinary to file object? - Python language lacks expression?

2005-02-03 Thread Martin Franklin
Robert wrote: I just tried to convert a (hugh size) ftp.retrbinary run into a pseudo-file object with .read(bytes) method in order to not consume 500MB on a copy operation. First I thought, its easy as usual with python using something like 'yield' or so. Yet I didn't manage to do (without using

Re: convert ftp.retrbinary to file object? - Python language lacks expression?

2005-02-03 Thread Martin Franklin
Martin Franklin wrote: Martin Franklin wrote: Robert wrote: I just tried to convert a (hugh size) ftp.retrbinary run into a pseudo-file object with .read(bytes) method in order to not consume 500MB on a copy operation. [snip] H this is nearly there I think...: whoops... spoke too soon

Re: tkinter socket client ?

2005-01-25 Thread Martin Franklin
Tonino wrote: Hi, thanks for this info - I had to abandon the createfilehandler() method as it is not supported in windows and the GUI might be used there at some time ... So - I went the threading route - works well - for now - so I will stick to it ... BUT - the next question: In the Text()

Re: samba/windows shares

2004-12-10 Thread Martin Franklin
On Thu, 9 Dec 2004 20:03:55 +0530 (IST), I.V. Aprameya Rao [EMAIL PROTECTED] wrote: hi does anybody know how to access samba/windows shares on a network? is there any module that does this? i am running linux and i thought of using the mount command to mount that remote share and then access