Re: [Tutor] Py script conversion to .dll or .exe

2011-02-15 Thread Chris Fuller
Python already is a dll; You can load the Python26.dll and use it to run CPython programs with full compatibility. It would be more elegant to use IronPython if if you aren't using any compiled libraries; it would integrate neatly and not be running islolated/standalone. Cheers On Monday 14

[Tutor] Update a button content on click

2011-02-15 Thread ANKUR AGGARWAL
Hey I am looking for a method using Tkinter module to update the button on the click. Suppose I have a button with hello print on it. I want that when i click on it hello got updated with the hi. New value button should return on the its click should be hi. I tried it through event handling but

Re: [Tutor] Update a button content on click

2011-02-15 Thread Alan Gauld
ANKUR AGGARWAL coolankur2...@gmail.com wrote I am looking for a method using Tkinter module to update the button on the click. Define an event handler command for the button. Lets call it sayHi() def sayHi(self): self.myButton['text'] = 'hi' # Note:event handlers don't return

[Tutor] Creating xml documents

2011-02-15 Thread allan oware
Hi there, Which python modules can one use to create nicely formatted xml documents ? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Creating xml documents

2011-02-15 Thread Stefan Behnel
allan oware, 15.02.2011 14:31: Which python modules can one use to create nicely formatted xml documents ? Depends on your exact needs, but xml.etree.ElementTree is usually a good thing to use anyway. If you care about formatting (a.k.a. pretty printing), look here:

Re: [Tutor] Creating xml documents

2011-02-15 Thread Karim
Hello, It seems stefan that version 1.3 still does not validate xml against xsd... Reg On 02/15/2011 02:48 PM, Stefan Behnel wrote: allan oware, 15.02.2011 14:31: Which python modules can one use to create nicely formatted xml documents ? Depends on your exact needs, but

Re: [Tutor] Creating xml documents

2011-02-15 Thread Karim
Hello, It seems stefan that version 1.3 still does not validate xml against xsd... Reg On 02/15/2011 02:48 PM, Stefan Behnel wrote: allan oware, 15.02.2011 14:31: Which python modules can one use to create nicely formatted xml documents ? Depends on your exact needs, but

Re: [Tutor] Update a button content on click

2011-02-15 Thread ANKUR AGGARWAL
hmmm... i got the point. I applied it in image case. b1=button(root,image=None,height=4,width=4,command=ok) and then ok defination is as follows : def ok(): b1[image]=photo now problem is that after clicking on the button, image is coming up like a flash and then button becomes almost to

Re: [Tutor] Creating xml documents

2011-02-15 Thread Stefan Behnel
Karim, 15.02.2011 17:24: On 02/15/2011 02:48 PM, Stefan Behnel wrote: allan oware, 15.02.2011 14:31: Which python modules can one use to create nicely formatted xml documents ? Depends on your exact needs, but xml.etree.ElementTree is usually a good thing to use anyway. If you care about

Re: [Tutor] Update a button content on click

2011-02-15 Thread ALAN GAULD
b1=button(root,image=None,height=4,width=4,command=ok) This says you want the button to e 4 pixels squarte. Is that really what you want?, because and then ok defination is as follows : def ok(): b1[image]=photo now problem is that after clicking on the button, image is coming up

Re: [Tutor] Update a button content on click

2011-02-15 Thread ANKUR AGGARWAL
from Tkinter import * root=Tk() photo=PhotoImage(file=Cross.gif) def ok(): b1[image]=photo b1=Button(root,text=,image=None,command=ok) b1.grid() root.mainloop() Here's my code . Not getting the desired output On Tue, Feb 15, 2011 at 10:26 PM, ALAN GAULD alan.ga...@btinternet.comwrote:

Re: [Tutor] Update a button content on click

2011-02-15 Thread ANKUR AGGARWAL
upper code posted earlier is running fine The problem is in the code below bcoz of the height nd width factor... from Tkinter import * root=Tk() photo=PhotoImage(file=Cross.gif) def ok(): b1[image]=photo b1=Button(root,text=,image=None,height=4,width=4,command=ok) b1.grid() On Tue, Feb

Re: [Tutor] Update a button content on click

2011-02-15 Thread ALAN GAULD
I modified your code slightly for Python 3.1 to this: ### from tkinter import * root=Tk() def ok(): b1[image]=photo photo=PhotoImage(file=rM:\Photos\TomMcM\Chris.GIF) b1=Button(root,text=,image=None,command=ok) b1.grid() root.mainloop() # Which

Re: [Tutor] Update a button content on click

2011-02-15 Thread ANKUR AGGARWAL
your code was fine. I am having problem with this code from Tkinter import * root=Tk() photo=PhotoImage(file=Cross.gif) def ok(): b1[image]=photo b1=Button(root,text=,image=None,height=4,width=4,command=ok) b1.grid() root.mainloop() On Tue, Feb 15, 2011 at 11:20 PM, ALAN GAULD

Re: [Tutor] Update a button content on click

2011-02-15 Thread ALAN GAULD
It works fine for me. Except that the button is too big before I press it - I'm not sure why - but after pressing it it shrinks to 4x4 pixels with the image inside.(albeit too small to see!). OK, more experimenting... It seems that Tkinter is smart enough to use characters for sizes when

[Tutor] remote code execution

2011-02-15 Thread S de Haan
Hi guys, I was wondering if there is a IDE or another environment that allows me to execute python code from my desktop computer on remote servers within my LAN without having to move the python files to and from the server. For instance, Im working on my local machine with Eclipse, but using

Re: [Tutor] remote code execution

2011-02-15 Thread ian douglas
Sounds like it should be possible via SSH, but I have no idea how you'd set that up within Eclipse. On 02/15/2011 10:50 AM, S de Haan wrote: For instance, Im working on my local machine with Eclipse, but using the Interpreter that is on one of my Linux Servers.

Re: [Tutor] remote code execution

2011-02-15 Thread Emile van Sebille
On 2/15/2011 10:50 AM S de Haan said... Hi guys, I was wondering if there is a IDE or another environment that allows me to execute python code from my desktop computer on remote servers within my LAN without having to move the python files to and from the server. For instance, Im working on

Re: [Tutor] remote code execution

2011-02-15 Thread Izz ad-Din Ruhulessin
Send your code as a raw text string and use eval on it maybe 2011/2/15 ian douglas ian.doug...@iandouglas.com Sounds like it should be possible via SSH, but I have no idea how you'd set that up within Eclipse. On 02/15/2011 10:50 AM, S de Haan wrote: For instance, Im working on my local

Re: [Tutor] remote code execution

2011-02-15 Thread Izz ad-Din Ruhulessin
Just tested that, doesn't work. Have you considered installing SVN or any other version control system? 2011/2/15 Izz ad-Din Ruhulessin izzaddin.ruhules...@gmail.com Send your code as a raw text string and use eval on it maybe 2011/2/15 ian douglas ian.doug...@iandouglas.com Sounds like

Re: [Tutor] remote code execution

2011-02-15 Thread Alan Gauld
S de Haan kyron...@gmail.com wrote I was wondering if there is a IDE or another environment that allows me to execute python code from my desktop computer on remote servers within my LAN without having to move the python files to and from the server. So you have the Python interpreter on a

Re: [Tutor] remote code execution

2011-02-15 Thread S de Haan
On Tue, Feb 15, 2011 at 8:26 PM, Alan Gauld alan.ga...@btinternet.comwrote: S de Haan kyron...@gmail.com wrote I was wondering if there is a IDE or another environment that allows me to execute python code from my desktop computer on remote servers within my LAN without having to move the

Re: [Tutor] remote code execution

2011-02-15 Thread Steve Willoughby
On 15-Feb-11 12:41, S de Haan wrote: Thanks all for the Answers, and the desktop machine is running mostly Windows... So when building a Linux focussed application it becomes difficult to run in locally... However mounting the server share on the Desktop shouldn't be that difficult. Thanks!

Re: [Tutor] remote code execution

2011-02-15 Thread Bill Allen
If SAMBA is available on the Linux server, create a share and put your source files there. Then, map that CIFS share on you Windows workstation and work on the files on the share with you local IDE. Run the code via a ssh or telnet connection session back to the Linux server. Editing and