Re: wxPython and how to return text entry to main program?

2007-04-20 Thread kyosohma
On Apr 19, 9:05 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > 7stud wrote: > > On Apr 19, 1:38 pm, Tyler <[EMAIL PROTECTED]> wrote: > > [after quoting umpteen lines of code] > > > > > > > You can do this: > > > --- > > class MyFrame(wx.Frame): > > > .. > > .. > > .. > > def OnSubmit(self, event

Re: wxPython and how to return text entry to main program?

2007-04-20 Thread kyosohma
On Apr 19, 9:05 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > 7stud wrote: > > On Apr 19, 1:38 pm, Tyler <[EMAIL PROTECTED]> wrote: > > [after quoting umpteen lines of code] > > > > > > > You can do this: > > > --- > > class MyFrame(wx.Frame): > > > .. > > .. > > .. > > def OnSubmit(self, event

Re: Newbie question regarding string.split()

2007-04-20 Thread kyosohma
On Apr 20, 1:51 pm, kevinliu23 <[EMAIL PROTECTED]> wrote: > Hey guys, > > So I have a question regarding the split() function in the string > module. Let's say I have an string... > > input = "2b 3 4bx 5b 2c 4a 5a 6" > projectOptions = (input.replace(" ", "")).split('2') > print projectOptions > >

Re: Learning Python - First Project

2007-04-23 Thread kyosohma
On Apr 23, 9:52 am, KDawg44 <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to Python and am trying to write a little front end to > another application in Python. > > What I want is to have a gui pop up listing some items with several > buttons. The guts of the program I am not having any trouble w

Re: Learning Python - First Project

2007-04-23 Thread kyosohma
On Apr 23, 9:52 am, KDawg44 <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to Python and am trying to write a little front end to > another application in Python. > > What I want is to have a gui pop up listing some items with several > buttons. The guts of the program I am not having any trouble w

Re: Learning Python - First Project

2007-04-23 Thread kyosohma
On Apr 23, 1:44 pm, [EMAIL PROTECTED] wrote: > On Apr 23, 9:52 am, KDawg44 <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I am new to Python and am trying to write a little front end to > > another application in Python. > > > What I want is to have a gui pop up listing some items with several > >

Re: Would You Write Python Articles or Screencasts for Money?

2007-04-24 Thread kyosohma
On Apr 24, 5:47 am, Michael Hoffman <[EMAIL PROTECTED]> wrote: > Jeff Rush wrote: > > There is discussion by the Python Software Foundation of offering cash > > bounties or perhaps periodic awards to the "best of" for magazine articles, > > video/screencast clips and such. > > > If YOU would be swa

Re: getting scancodes

2007-04-24 Thread kyosohma
On Apr 23, 7:39 pm, [EMAIL PROTECTED] wrote: > Anyone knows if its possible to get scan codes ??? > I tried with getch () but with no success, just keycodes. > May be using the something in the sys.stdin module ?? > > Pleasee, any help would be very appreciated. > > -- > Andrés M. > ---

Re: Learning Python - First Project

2007-04-24 Thread kyosohma
On Apr 23, 6:36 pm, 7stud <[EMAIL PROTECTED]> wrote: > On Apr 23, 5:04 pm, Kevin Haynes <[EMAIL PROTECTED]> wrote: > > > > > Hello > > > I was a python newbie just a month ago and found the following books a great > > help. > > > Beginning Python: From Novice to Professional (Beginning: From Novice

Re: Python Screen Scraper

2007-04-24 Thread kyosohma
On Apr 24, 7:17 am, Michael Bentley <[EMAIL PROTECTED]> wrote: > On Apr 24, 2007, at 11:50 AM, James Stroud wrote: > > > > > Hello, > > > Does anyone know of an example, however modest, of a screenscraper > > authored in python? I am using Firefox. > > > Basically, I am answering problems via my br

Re: simplest install procedure for Python + packages under winXP ?

2007-04-26 Thread kyosohma
On Apr 26, 4:41 am, Laurent Pointal <[EMAIL PROTECTED]> wrote: > stef a écrit : > > > > > hello, > > > I'm still in the transition of going from MatLab to Scipy, > > and installed previous week a SciPy on a PC twice, > > through the new "Enstaller". > > It's a pitty that there will be no old instal

Re: urlopen

2007-04-26 Thread kyosohma
On Apr 26, 12:39 pm, "Dave Dean" <[EMAIL PROTECTED]> wrote: > Hi all, > I'm running into some trouble using urllib.urlopen to grab a page from our > corporate intranet. The name of the internal site is simplyhttp://web(no > www or com). I can use urlopen to grab a site likehttp://www.google.com

Re: Multiple select in wx.GenericDirCrtl

2007-04-27 Thread kyosohma
On Apr 27, 7:31 am, Soren <[EMAIL PROTECTED]> wrote: > Hi! > > Is it possible to do multiple file selections in a wx.GenericDirCtrl?? > > Thanks, > Soren I'm not finding anything. I do know you can select multiple files using the FileDialog. You should email the wxPython users group though. They m

Accessing SQL View with Python

2007-04-27 Thread kyosohma
Hi All, I need to access a Microsoft SQL database View. Is there a way to do this with Python? I have done a fair share of "googling" and found nothing on accessing Views, just executing SQL, which I already know how to do. I am running Windows XP, Python 2.4. Thanks a lot! Mike -- http://mai

Re: Accessing SQL View with Python

2007-04-27 Thread kyosohma
On Apr 27, 10:29 am, Tim Golden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi All, > > > I need to access a Microsoft SQL database View. Is there a way to do > > this with Python? I have done a fair share of "googling" and found > > nothing on accessing Views, just executing SQL, whi

Re: python and COM

2007-04-27 Thread kyosohma
On Apr 27, 2:50 pm, Brian Blais <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to communicate to a Reuters feed using Python, using a particular > set of > libraries called the Adfin Real Time library. I have VB code, and am trying > to port > it to python, and admit I really do not underst

Re: wxPython (Flex)GridSizer Failing

2007-04-27 Thread kyosohma
On Apr 27, 1:45 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Python v2.5 > wxPython v2.8.3.0 > > I've got an app that has a wx.Panel managed by a FlexGridSizer. There > are 5 columns and 6 rows, all with StaticText widgets and all of > similar size. Everything works fine until I Clear and

Re: Reading From an Excel Sheet

2007-04-30 Thread kyosohma
On Apr 30, 3:25 am, sagar <[EMAIL PROTECTED]> wrote: > Hi all, > I want to write a python script which reads in data from the > excel sheet .Can any one help out in this ...any help will be > appreciated. > > Thanks in Advance > Sagar Meesala "Core Python Programming" by Chun and "Py

Re: Python ODBC

2007-04-30 Thread kyosohma
On Apr 29, 11:34 am, Harlin Seritt <[EMAIL PROTECTED]> wrote: > Is there a Python odbc module that will work on Linux? I have a jdbc > connection to a DB2 server. I am looking hopefully for an open source > solution and not a commercial one. > > Thanks, > > Harlin I would think the odbc module wou

Re: tkinter undo

2007-04-30 Thread kyosohma
On Apr 28, 8:50 am, Gigs_ <[EMAIL PROTECTED]> wrote: > Hi > > I dont have idea how to write tkinter undo/redo function form my text editor > and > my paint program. > Could someone help? I'm not asking for code, just for some guidelines to get > me > in the right way. > > thanks >From what I've

Re: Update to Python Quick Reference Card (for Python 2.4) (v0.67)

2007-04-30 Thread kyosohma
On Apr 30, 7:42 am, Laurent Pointal <[EMAIL PROTECTED]> wrote: > PQRC (Python Quick Reference Card) is a condensed documentation for > Python and its main libraries, targetting production of printed quick > reference cards. > Its available as OpenDocument .odt files and as A4 and USLetter > formatt

Re: Can python find HW/SW installed on my PC - like Belarc?

2007-04-30 Thread kyosohma
On Apr 30, 10:47 am, walterbyrd <[EMAIL PROTECTED]> wrote: > Lets suppose, I want a listing of what hardware and software is > installed on my > windows box. Can I do that with Python? Yes, it is possible for Windows. I don't know how to grab the info for other OS's though. There is a caveat that

Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-30 Thread kyosohma
On Apr 30, 11:29 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I would like to see this as a command along with something to open web > pages.. Just one command instead of trying to figure out all the > different op systems. look forward to seeing your code > > https://sourceforge.net/proj

Re: Re-running script from Tk shell

2007-04-30 Thread kyosohma
On Apr 30, 9:51 am, gtb <[EMAIL PROTECTED]> wrote: > I am testing a simple script by running it in the Tk shell. It imports > a class from another module. I edit and save the file from which I > import. When I want to re-run I delete the Tk window and run the > module from the Edit window (F5 - Ru

Re: re-importing modules

2007-04-30 Thread kyosohma
On Apr 30, 12:49 pm, "T. Crane" <[EMAIL PROTECTED]> wrote: > Hi, > > When troubleshooting code that's saved in a text file, I often find that I > want to make a change to it, re-save it, then reimport it. However, just > typing > > import myTestCode > > doesn't always seem to import the newer vers

Re: re-importing modules

2007-04-30 Thread kyosohma
On Apr 30, 3:00 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Mon, 2007-04-30 at 12:44 -0700, [EMAIL PROTECTED] wrote: > > On Apr 30, 12:49 pm, "T. Crane" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > When troubleshooting code that's saved in a text file, I often find that I > > > want to make a

Re: Microsoft's Dynamic Languages Runtime (DLR)

2007-05-02 Thread kyosohma
On May 2, 1:22 pm, sturlamolden <[EMAIL PROTECTED]> wrote: > On Monday Microsoft announced a new runtime for dynamic languages, > which they call "DLR". It sits on top of the conventional .NET runtime > (CLR) and provides services for dynamically typed languages like > Python or Lisp (thus the cro

Re: How to replace the last (and only last) character in a string?

2007-05-03 Thread kyosohma
On May 3, 9:27 am, Johny <[EMAIL PROTECTED]> wrote: > Let's suppose > s='12345 4343 454' > How can I replace the last '4' character? > I tried > string.replace(s,s[len(s)-1],'r') > where 'r' should replace the last '4'. > But it doesn't work. > Can anyone explain why? > > Thanks > L. I think the

Re: My Python annoyances

2007-05-03 Thread kyosohma
On May 3, 9:27 am, Paul Boddie <[EMAIL PROTECTED]> wrote: > On 3 Mai, 15:49, Ben Collver <[EMAIL PROTECTED]> wrote: > > > I rewrote my code in Python and I found myself running into many of the > > same hassles that I run into with other languages: inaccurate and > > incomplete documentation, a maz

Re: NewB: Glob Question

2007-05-03 Thread kyosohma
On May 3, 12:38 pm, J <[EMAIL PROTECTED]> wrote: > Greetings Group- > > I'm trying to put together a pattern matching script that scans a > directory tree for tif images contained in similar folder names, but > running into a NewB problem already. Is it the way I'm trying to join > multiple paths?

Re: problem with py2exe and microsoft speech SDK 5.1

2007-05-03 Thread kyosohma
On May 3, 1:29 pm, Dave Lim <[EMAIL PROTECTED]> wrote: > Hello, this is my first time in the mailing list so > bear with me. > > Basically what I did was I followed this > site:http://surguy.net/articles/speechrecognition.xml > > So I installed microsoft speech SDK 5.1 and then used > pythonwin CO

Re: How to replace the last (and only last) character in a string?

2007-05-03 Thread kyosohma
On May 3, 9:44 am, Johny <[EMAIL PROTECTED]> wrote: > On May 3, 4:37 pm, [EMAIL PROTECTED] wrote: > > > > > On May 3, 9:27 am, Johny <[EMAIL PROTECTED]> wrote: > > > > Let's suppose > > > s='12345 4343 454' > > > How can I replace the last '4' character? > > > I tried > > > string.replace(s,s[len(s

Can Python Parse an MS SQL Trace?

2007-05-07 Thread kyosohma
Hi All, Can Python parse a trace file created with MS SQL's profiler? There are a few thousand lines in the trace file and I need to find the insert statements and the stored procedures. Unfortunately, I am not an SQL guru and was hoping Python could help. Any pointers are appreciated. Thanks!

Re: Can Python Parse an MS SQL Trace?

2007-05-07 Thread kyosohma
On May 7, 8:34 am, Tim Golden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Can Python parse a trace file created with MS SQL's profiler? There > > are a few thousand lines in the trace file and I need to find the > > insert statements and the stored procedures. Unfortunately, I am not

Re: randomly write to a file

2007-05-07 Thread kyosohma
On May 7, 2:51 pm, rohit <[EMAIL PROTECTED]> wrote: > hi, > i am developing a desktop search.For the index of the files i have > developed an algorithm with which > i should be able to read and write to a line if i know its line > number. > i can read a specified line by using the module linecache

Re: Can Python Parse an MS SQL Trace?

2007-05-08 Thread kyosohma
On May 8, 5:18 am, Tim Golden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On May 7, 8:34 am, Tim Golden <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >>> Can Python parse a trace file created with MS SQL's profiler? There > >>> are a few thousand lines in the trace file a

Re: Another easy pair of questions

2007-05-08 Thread kyosohma
On May 8, 4:12 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > In a python Tk shell in Windows, what is the equivalent of unix's pwd? > > os.getcwd() > > > In a python Tk shell in Windows, is there an easy way to reoeat an > > earlier command, similar to Tcl/Tk's hist? > > Press the cursor-up

Re: Specification for win32com.client package

2007-05-09 Thread kyosohma
On May 8, 7:34 am, Tim Golden <[EMAIL PROTECTED]> wrote: > Peter Fischer wrote: > > Hello Tim, > > > thank you for your answer and sorry for the multiple e-mails. Thank you > > also for > > the hint on the book. I already read into it in our local library. Its > > good, but a > > little outdated

Re: Specification for win32com.client package

2007-05-09 Thread kyosohma
On May 9, 8:25 am, Tim Golden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > The wiki idea sounds like a good one. I was thinking about doing some > > kind of Python site about the modules and I think the popular 3rd > > party ones would be a good place to start, maybe starting with win3

Re: path stuff

2007-05-09 Thread kyosohma
On May 9, 1:11 pm, fscked <[EMAIL PROTECTED]> wrote: > I am walking some directories looking for a certain filename pattern. > This part works fine, but what if I want to exclude results from a > certain directory being printed? > > eg > > d:\dir\mydir1\filename.txt <--

Re: preferred windows text editor?

2007-05-09 Thread kyosohma
On May 9, 1:06 pm, "T. Crane" <[EMAIL PROTECTED]> wrote: > Right now I'm using Notepad++. What are other people using? > > trevis For Python, I still prefer IDLE or PythonWin. For other things like cmd, ini, and other text files, I use either Notepad++ or UltraEdit. Mike -- http://mail.python

Re: which is more pythonic/faster append or +=[]

2007-05-09 Thread kyosohma
On May 9, 11:08 am, 7stud <[EMAIL PROTECTED]> wrote: > On May 8, 11:05 pm, [EMAIL PROTECTED] (Alex Martelli) wrote: > > > > > alf <[EMAIL PROTECTED]> wrote: > > > two ways of achieving the same effect > > > > l+=[n] > > > > or > > > > l.append(n) > > > > so which is more pythonic/faster? > > > .app

Re: Specification for win32com.client package

2007-05-09 Thread kyosohma
On May 9, 10:26 am, Tim Golden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On May 9, 8:25 am, Tim Golden <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >>> The wiki idea sounds like a good one. I was thinking about doing some > >>> kind of Python site about the modules and

Re: Unzip then Zip help

2007-05-09 Thread kyosohma
On May 9, 2:36 pm, [EMAIL PROTECTED] wrote: > I am a true n00b... and I just using Python to complete some very > small uneventful task, but need help with one last thing. > > Basically, this I what I am trying to do. > > make a temp directory (this part I can do) > > Need help with: > ***unzip a J

Comparing dates problem

2007-05-09 Thread kyosohma
Hi, I am writing a reminder program for our Zimbra email client. One of the requirements I was given was to automatically increment or decrement the display to show something like the following: 5 minutes until appointment or 10 minutes past your appointment Either way, as each minute goes by

Re: Comparing dates problem

2007-05-10 Thread kyosohma
On May 9, 5:12 pm, John Machin <[EMAIL PROTECTED]> wrote: > On May 10, 7:34 am, [EMAIL PROTECTED] wrote: > > > > > Hi, > > > I am writing a reminder program for our Zimbra email client. One of > > the requirements I was given was to automatically increment or > > decrement the display to show somet

Re: Comparing dates problem

2007-05-10 Thread kyosohma
On May 10, 2:37 am, Tim Golden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I am writing a reminder program for our Zimbra email client. One of > > the requirements I was given was to automatically increment or > > decrement the display to show something like the following: > > > 5 min

Re: SQLObject 0.9.0

2007-05-10 Thread kyosohma
On May 10, 10:25 am, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > Hello! > > I'm pleased to announce the 0.9.0 release of SQLObject, the first stable > release of the 0.9 branch. > > What is SQLObject > = > > SQLObject is an object-relational mapper. Your database tables are describ

Re: Comparing dates problem

2007-05-10 Thread kyosohma
On May 10, 1:52 pm, [EMAIL PROTECTED] wrote: > On May 9, 5:12 pm, John Machin <[EMAIL PROTECTED]> wrote: > > > > > On May 10, 7:34 am, [EMAIL PROTECTED] wrote: > > > > Hi, > > > > I am writing a reminder program for our Zimbra email client. One of > > > the requirements I was given was to automatic

Re: Comparing dates problem

2007-05-10 Thread kyosohma
On May 10, 2:45 pm, John Machin <[EMAIL PROTECTED]> wrote: > On May 11, 4:52 am, [EMAIL PROTECTED] wrote: > > > > > On May 9, 5:12 pm, John Machin <[EMAIL PROTECTED]> wrote: > > > > On May 10, 7:34 am, [EMAIL PROTECTED] wrote: > > > > > Hi, > > > > > I am writing a reminder program for our Zimbra e

Re: How to installo????

2007-05-10 Thread kyosohma
On May 10, 8:58 am, RonV <[EMAIL PROTECTED]> wrote: > Just got a new Vista system and puter > > Installed a newer version of Python, up from 2.2 or so... > > Tried to install Win extensions, but have forgotten how it's done. > Clicking on setup in the Win Extsions package flashes a window by,

Re: setting extra data to a wx.textctrl

2007-05-11 Thread kyosohma
On May 10, 10:51 pm, Pom <[EMAIL PROTECTED]> wrote: > Hello group! > > I have an application which uses a lot of mysql data fields, all the > same data type (floats). > > I created a panel which executes a "SELECT * FROM tablename" and makes > as much fields as needed, using de cursor.description a

Re: stealth screen scraping with python?

2007-05-11 Thread kyosohma
On May 11, 2:32 pm, [EMAIL PROTECTED] wrote: > Folks: > > I am screen scraping a large volume of data from Yahoo Finance each > evening, and parsing with Beautiful Soup. > > I was wondering if anyone could give me some pointers on how to make > it less obvious to Yahoo that this is what I am doing,

Re: Time

2007-05-14 Thread kyosohma
On May 14, 9:00 am, HMS Surprise <[EMAIL PROTECTED]> wrote: > Thanks for posting. I sure am sorry that I wasted your time. I should > have started the post stating I am using jython 2.2.3 and apparently > it has no datetime module. But I will keep datetime in mind for future > reference. > > Since

Re: A newbie question about FileDialog in wxPython

2007-05-14 Thread kyosohma
On May 11, 1:24 pm, "OhKyu Yoon" <[EMAIL PROTECTED]> wrote: > Hi! > I am opening files using the wx.FileDialog in wxPython. > I want to modify the FileDialog such that some information about a > highlighted file is displayed before I decide to open the file. > This is what I tried: > > class Modifi

Re: deployment scripts

2007-05-14 Thread kyosohma
On May 14, 9:32 am, Erin <[EMAIL PROTECTED]> wrote: > Does anyone have experience developing deployment scripts with Jython? What do you mean by "deployment scripts"? What do you want to deploy? Jython? A different program from Jython? Or do you mean packaging a Jython program you wrote? We need

Re: Python Power Point Slides

2007-05-15 Thread kyosohma
On May 15, 12:19 am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Tue, 15 May 2007 02:48:47 +0200, Irmen de Jong wrote: > > Krypto wrote: > >> Hi, > > >> I want to give a short presentation in my group about benefits of > >> python, why should one use python and some basic starting information >

Re: Get a control over a window

2007-05-15 Thread kyosohma
On May 15, 8:06 am, Tom Gur <[EMAIL PROTECTED]> wrote: > Hi, > > I was wondering how do I get control over a window (Win32). > to be more specific, I need to find a handle to a window of a certain > program and minimize the window. It sounds pretty complicated to me, but here's what I found: http

Re: List Moderator

2007-05-18 Thread kyosohma
On May 18, 12:36 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > Is this list not moderated? I'm really not interested in Britney > > Spears boobs. All the spam on this list is from the same place, it > > should be very easy to filter. > > Is it a list, is it a newsgroup? No, i

Re: model browser

2007-05-21 Thread kyosohma
On May 20, 3:02 pm, "Daniel Nogradi" <[EMAIL PROTECTED]> wrote: > And before you ask, yes, I did > readhttp://mail.python.org/pipermail/python-list/2007-May/440337.htmlbut > there was nothing beyond django/tg :) SqlAlchemy is being or has been integrated with quite a few web frameworks. You might

Re: full screen graphics

2007-05-21 Thread kyosohma
On May 21, 8:39 am, myheartinamerica <[EMAIL PROTECTED]> wrote: > Hello, > > I need to run a particular graphics application over and over again > with a different command line to get benchmarks on the applications > performance (frame rates and similar data). I am running the following > within a

Re: NOOOOB

2007-05-22 Thread kyosohma
On May 22, 7:26 am, Giles Brown <[EMAIL PROTECTED]> wrote: > On 22 May, 11:29, jolly <[EMAIL PROTECTED]> wrote: > > > Hey guys, > > > I want to begin python. Does anyone know where a good starting point > > is? > > > Thanks, > > Jem > > My suggestion is have a look atwww.python.organd see if you ca

Re: NOOOOB

2007-05-22 Thread kyosohma
On May 22, 7:16 am, marc wyburn <[EMAIL PROTECTED]> wrote: > On May 22, 11:29 am, jolly <[EMAIL PROTECTED]> wrote: > > > Hey guys, > > > I want to begin python. Does anyone know where a good starting point > > is? > > > Thanks, > > Jem > > i went through the tutorials on the main site and then foll

Create an XML document

2007-05-22 Thread kyosohma
Hi all, I am attempting to create an XML document dynamically with Python. It needs the following format: 1179775800 1800 I tried using minidom with the following code: from xml.dom.minidom import Document doc = Document() zappt = doc.crea

Re: xml.dom.minidom: how to preserve CRLF's inside CDATA?

2007-05-22 Thread kyosohma
On May 22, 8:45 am, "sim.sim" <[EMAIL PROTECTED]> wrote: > Hi all. > i'm faced to trouble using minidom: > > #i have a string (xml) within CDATA section, and the section includes > "\r\n": > iInStr = '\n\n' > > #After i create DOM-object, i get the value of "Data" without "\r\n" > > from xml.dom im

Re: NOOOOB

2007-05-22 Thread kyosohma
On May 22, 7:16 am, marc wyburn <[EMAIL PROTECTED]> wrote: > On May 22, 11:29 am, jolly <[EMAIL PROTECTED]> wrote: > > > Hey guys, > > > I want to begin python. Does anyone know where a good starting point > > is? > > > Thanks, > > Jem > > i went through the tutorials on the main site and then foll

Re: Create an XML document

2007-05-22 Thread kyosohma
On May 22, 10:00 am, [EMAIL PROTECTED] wrote: > Hi all, > > I am attempting to create an XML document dynamically with Python. It > needs the following format: > > > > 1179775800 > 1800 > > > > I tried using minidom with the following code: > > >

Re: drag and drop with wxPython ?

2007-05-22 Thread kyosohma
On May 22, 10:00 am, stef <[EMAIL PROTECTED]> wrote: > hello, > > I'm trying to move from Delphi to Python > (move from MatLab to Python already succeeded, also thanks to this > discussion group). > From the discussions in this list about "the best" GUI for Python, > it now seems to me that wxPyth

Re: Create an XML document

2007-05-23 Thread kyosohma
On May 22, 7:30 pm, Stefan Behnel <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I am attempting to create an XML document dynamically with Python. It > > needs the following format: > > > > > > >1179775800 > >1800 > > > > > > Try lxml.objectify. >

Re: Resizing listbook's listview pane

2007-05-23 Thread kyosohma
On May 22, 1:49 pm, mkPyVS <[EMAIL PROTECTED]> wrote: > I'm having an issue I need help with. I want to resize the listview > control in a listbook but have been unsuccessfull through setting the > columnWidth of the 0'th column and trying to retrieve the listbooks > sizer return's None Ideas?

Re: Namespace issue

2007-05-23 Thread kyosohma
On May 23, 1:20 pm, Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: > Hi, > > I need a little help in understanding how Namespaces and scoping works with > Classes/Functions in Python. > > Here's my code: > class FetchData: > def __init__(self, dataTypes=["foo", "bar", "spam"], archive=False): > >

Re: Namespace issue

2007-05-23 Thread kyosohma
On May 23, 1:20 pm, Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: > Hi, > > I need a little help in understanding how Namespaces and scoping works with > Classes/Functions in Python. > > Here's my code: > class FetchData: > def __init__(self, dataTypes=["foo", "bar", "spam"], archive=False): > >

Re: Resizing listbook's listview pane

2007-05-23 Thread kyosohma
On May 23, 11:53 am, mkPyVS <[EMAIL PROTECTED]> wrote: > On May 23, 9:04 am, [EMAIL PROTECTED] wrote: > > > Which Python gui toolkit are you using? Tkinter, wxPython, pyQT? Are > > you wanting the resize to happen programmatically, when the user > > changes the app's size, both or what? > > > More

Re: Accessing iTunes with Python via the Windows SDK

2007-05-24 Thread kyosohma
On May 24, 12:59 am, Denrael <[EMAIL PROTECTED]> wrote: > On May 24, 12:17 am, Tony Meyer <[EMAIL PROTECTED]> wrote: > > > On May 24, 4:23 pm, Denrael <[EMAIL PROTECTED]> wrote:> I've been playing > > with the iTunes sdk on windows, and have come across > > > a strange problem. With the following

Re: drag and drop with wxPython ?

2007-05-25 Thread kyosohma
On May 25, 4:46 am, Stef Mientki <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On May 22, 10:00 am, stef <[EMAIL PROTECTED]> wrote: > >> hello, > > >> I'm trying to move from Delphi to Python > >> (move from MatLab to Python already succeeded, also thanks to this > >> discussion group).

Re: Xml parser

2007-05-25 Thread kyosohma
On May 25, 7:04 am, "Amit Khemka" <[EMAIL PROTECTED]> wrote: > On 5/24/07, ashish <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > I want to know weather is there any api available in python for parsing > > xml(XML parser) > > Checkout cElementTree . > > Cheers, > > -- > > Amit Khemka -- onyomo.

Re: webbrowser module bug?

2007-05-25 Thread kyosohma
On May 24, 5:03 pm, Ron Adam <[EMAIL PROTECTED]> wrote: > Is anyone else having problems with the webbrowser module? > > Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25) > [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >

Re: stdout and threads

2007-05-29 Thread kyosohma
On May 28, 4:54 am, "Troels Thomsen" wrote: > Hello All > > I have trouble printing to stdout from a thread and main program. > > Not only will it look strange when they try to print at the same time, that > is ok, but i think i see lock-ups. (strange exceptions in Tkinker etc) Or is > it an issue

Re: Storing tracebacks

2007-05-29 Thread kyosohma
On May 28, 10:46 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > I'm reading the docs on sys.exc_info() but I can't tell for sure > whether I'm using it safely to get a snapshot of an exception and > reraise it later. The use case is a class which acts like a deferred > callable, a callable that wil

Re: wxpython demo error on debian etch

2007-05-29 Thread kyosohma
On May 29, 8:38 am, BartlebyScrivener <[EMAIL PROTECTED]> wrote: > If there is a wxPython on Debian user in the house? I am using the > version of the demo that came with the apt-get download of wxPython. > > I thought I'd followed the instructions for installing and unpacking > the wxPython demo p

Re: wxpython demo error on debian etch

2007-05-29 Thread kyosohma
On May 29, 12:33 pm, BartlebyScrivener <[EMAIL PROTECTED]> wrote: > On May 29, 8:51 am, [EMAIL PROTECTED] wrote: > > > The wxPython > > website details how to get the latest version of wxPython (2.8.4) > > I'm fairly new to Linux, so I probably shouldn't mess with my stable > Etch. > > I'll make do

Re: Tkinter Listbox - Different Text colors in one listbox

2007-05-29 Thread kyosohma
On May 29, 12:02 pm, [EMAIL PROTECTED] wrote: > Hi, > Is it possible to have different items in a listbox in different > colors? Or is it just one color for all items in a listbox? > Thanks > Rahul Looks like it has to be the same color and font: http://www.pythonware.com/library/tkinter/introduct

Re: Python 2.5 and WXPython demo's

2007-05-30 Thread kyosohma
On May 30, 7:29 am, stef <[EMAIL PROTECTED]> wrote: > Wildemar Wildenburger wrote: > > Andrew P wrote: > >> Hello, > > >> I am new (very) to Python and have just down loaded the latest version > >> of Python (2.5) and WXPython (2.8). > > >> For some reason I cannot get the WXPython demo to run at a

Re: Off Topic: What is the good book to learn Python ?

2007-05-30 Thread kyosohma
On May 30, 1:25 pm, Katie Tam <[EMAIL PROTECTED]> wrote: > I am new to this filed and begin to learn this langague. Can you tell > me the good books to start with ? > > Katie Tam > Network administratorhttp://www.linkwaves.com/main.asphttp://www.linkwaves.com Depends on what you like. For easy stu

Re: wxpython demo error on debian etch

2007-05-31 Thread kyosohma
On May 31, 12:21 am, BartlebyScrivener <[EMAIL PROTECTED]> wrote: > On May 29, 1:09 pm, [EMAIL PROTECTED] wrote: > > > The newer versions of wxPython won't make your Debian crash or > > anything. We run Debian at work and I've upgraded the Python to 2.4 > > and the wxPython to its newest version. T

Re: WEATHER PROGRAMMING IN PYTHON

2007-05-31 Thread kyosohma
On May 31, 8:44 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, sandeep patil > wrote: > > > how to diplay the weather condiction on my webpage > > suppose i want to read weather fromwww.bbc.co.uk/weather.html > > how i can read it usin program > > It's hard to scr

Re: Examples of high-quality python code?

2007-05-31 Thread kyosohma
On May 31, 8:38 am, Larry Bates <[EMAIL PROTECTED]> wrote: > kaens wrote: > > Hey everyone, I'm relatively new to python - I actually picked it up > > to see how quickly I could start building non-trivial apps with it. > > > Needless to say, I was quite pleased. > > > Anyhow, I'm looking to expand

Re: How do I Extract Attachment from Newsgroup Message

2007-05-31 Thread kyosohma
On May 31, 8:54 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm parsing NNTP messages that have XML file attachments. How can I > extract the encoded text back into a file? I looked for a solution > with mimetools (the way I'd approach it for email) but found nothing. > > Here's a long sni

Re: Python MAPI

2007-07-23 Thread kyosohma
On Jul 22, 3:00 pm, [EMAIL PROTECTED] wrote: > > Well, I ran Process Monitor with some filters enabled to only watch > > Thunderbird and MS Word. Unfortunately, that didn't give me any of the > > registry edits, so I disabled my filters and ran it without. Now I > > have a log file with 28,000 entr

Re: wxPython Internationalization

2007-07-24 Thread kyosohma
On Jul 24, 1:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I know this may have a very simple answer, nonetheless. I am wishing > to find the cleanest and most pythonic way of implementing the > following: > > I am creating a internationalized application in wxPython and have > sorted th

Re: some parts of wxPython broken on Mac

2007-07-24 Thread kyosohma
On Jul 24, 6:14 am, Steve Holden <[EMAIL PROTECTED]> wrote: > ahlongxp wrote: > > Sorry, I know this is not the most appropriate place to talk about > > wxPython. > > But I can't have access to wxPython mail list page(because I don't pay > > enough). > > > I downloaded python2.5 and wxPython 2.8.4.

Re: wxPython - How to add sorting to a ListCtrl?

2007-07-24 Thread kyosohma
On Jul 24, 11:21 am, Robert Dailey <[EMAIL PROTECTED]> wrote: > Hi, > > I have 3 columns in my list control, each with a different "type" of > data (for example, one column has names, the other has dates, etc). > Can anyone reference a tutorial for solving this issue? I've done my > share of googli

Re: How to create a single executable of a Python program

2007-07-25 Thread kyosohma
On Jul 25, 6:38 am, Ali <[EMAIL PROTECTED]> wrote: > On Jul 25, 7:34 am, NicolasG <[EMAIL PROTECTED]> wrote: > > > Dear fellows, > > > I'm trying to create a executable file using py2exe . Unfortunately > > along with the python executable file it also creates some other files > > that are needed i

Re: Flatten a list/tuple and Call a function with tuples

2007-07-25 Thread kyosohma
On Jul 25, 9:50 am, beginner <[EMAIL PROTECTED]> wrote: > Hi, > > I am wondering how do I 'flatten' a list or a tuple? For example, I'd > like to transform[1, 2, (3,4)] or [1,2,[3,4]] to [1,2,3,4]. > > Another question is how do I pass a tuple or list of all the > aurgements of a function to the f

Re: Flatten a list/tuple and Call a function with tuples

2007-07-25 Thread kyosohma
On Jul 25, 10:46 am, beginner <[EMAIL PROTECTED]> wrote: > On Jul 25, 10:19 am, Stargaming <[EMAIL PROTECTED]> wrote: > > > > > On Wed, 25 Jul 2007 14:50:18 +, beginner wrote: > > > Hi, > > > > I am wondering how do I 'flatten' a list or a tuple? For example, I'd > > > like to transform[1, 2, (

Re: Reading files, splitting on a delimiter and newlines.

2007-07-25 Thread kyosohma
On Jul 25, 10:46 am, [EMAIL PROTECTED] wrote: > Hello, > > I have a situation where I have a file that contains text similar to: > > myValue1 = contents of value1 > myValue2 = contents of value2 but > with a new line here > myValue3 = contents of value3 > > My first approach

Re: wxGlade: Who knows how to drive this application?

2007-07-25 Thread kyosohma
On Jul 25, 1:44 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > Roel Schroeven wrote: > > Steve Holden schreef: > >> I've been trying to use wxGlade recently and I am finding it something > >> of a challenge. Is there any user who finds the user interface > >> satisfactory and the operation of the pr

Re: How to write GUI and event separately in wxPython??

2007-07-30 Thread kyosohma
On Jul 30, 1:34 am, Jia Lu <[EMAIL PROTECTED]> wrote: > HI all > > I am making an application with wxpython. > But I got a problem when I want to change the display string > according to process status. > > I passed the frame to the processing function and use the > frame.txtobj to change displa

Re: Events: The Python Way

2007-07-30 Thread kyosohma
On Jul 29, 3:14 pm, "Gianmaria" <[EMAIL PROTECTED]> wrote: > "David Wilson" <[EMAIL PROTECTED]> ha scritto nel messaggionews:[EMAIL > PROTECTED] > > > > > Hi there, > > > Python has no built-in way of doing this. You may consider writing > > your own class if you like this pattern (I personally do

Re: Plotting Images

2007-07-31 Thread kyosohma
On Jul 31, 6:41 am, Pei-Yu CHAO <[EMAIL PROTECTED]> wrote: > Hi ALL: > > I have only been switched from matlab to python few > months ago. I having trouble of plotting images from a > matrix size of 8x1 (unfortunately that is the size > of my data.) > > for example, > x = rand(8,1) > in

<    1   2   3   4   5   6   7   8   >