Re: how to add a toolbar to a Frame using wxpython

2007-07-31 Thread kyosohma
On Jul 31, 8:24 am, yadin <[EMAIL PROTECTED]> wrote: > hi > please am learning wxpython and I Need help on getting examles of how > to create a toolbar with images > that is add a toolbar to a Frame using wxpython > using wxpython on a windows pc > how can i add a toolbar to a GUI > all sample code

Re: Error with Tkinter and tkMessageBox

2007-07-31 Thread kyosohma
On Jul 31, 12:30 pm, Fabio Z Tessitore <[EMAIL PROTECTED]> wrote: > hi all, > > this Tkinter very simple code work fine: > > ## > from Tkinter import * > > win = Tk() > win.mainloop() > ## > > but if I try to open a message box, it happens: > > Except

Re: Creating a shared object in python

2007-07-31 Thread kyosohma
On Jul 31, 2:37 pm, "Delgado, Edgardo CIV NAVAIR 4.1.4.3" <[EMAIL PROTECTED]> wrote: > Is there a way to create a shared object in python? > > Thx, > > Edgar You can save variables in a separate module. Something like this structure works quite well: # shared.py # shared variables / object some

Re: Strange problems with subprocess

2007-08-01 Thread kyosohma
On Aug 1, 2:20 am, Michele Petrazzo <[EMAIL PROTECTED]> wrote: > Hi all. I have a simple "ping tester" program that, every 1 minute > (execute by linux crontab), create, with subprocess, a > "ping -c 1 my_addrs". All work, but sometime (about 1/2 times at a day), > I receive this error message: > >

Re: Equivalent to gzinflate() function in PHP.

2007-08-01 Thread kyosohma
On Aug 1, 8:44 am, Adam Kubica <[EMAIL PROTECTED]> wrote: > Hellou. > > Anybody know about code that work equivalent to gzinflate() > function used in PHP? > > I search via google but I don't found anything sensible :-( I'm not sure what gzinflate does, but it looks like it's some kind of compress

Re: Python end of file marker similar to perl's __END__

2007-08-02 Thread kyosohma
On Aug 2, 8:08 am, Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-08-02, Magnus Lycka <[EMAIL PROTECTED]> wrote: > > > > > Neil Cerutti wrote: > >> On 2007-08-01, Cameron Laird <[EMAIL PROTECTED]> wrote: . > >>> I want to re-emphasize the "triple-quote it" tip mentioned > >>> earlier in this

Re: Determining if file is valid image file

2007-08-02 Thread kyosohma
On Aug 2, 9:35 am, Thomas Jollans <[EMAIL PROTECTED]> wrote: > On Thursday 02 August 2007, André wrote: > > > On Aug 2, 11:14 am, André <[EMAIL PROTECTED]> wrote: > > > Other than installing PIL, is there a "simple" way using Python only > > > to determine if a file is a valid image file? > > > > I

Re: backup/restore postgresql database

2007-08-02 Thread kyosohma
On Aug 2, 1:55 am, Acm <[EMAIL PROTECTED]> wrote: > I am working with Python 2.5 and Postgresql 8.2.4. > > I would like to know how to perform the backup and restore operations > on postgresql through a python API (e.g. psycopg2). > > Thank you. I don't know much about postgres, but here's what m

Re: problems playing with dates from any month.

2007-08-02 Thread kyosohma
On Aug 2, 12:31 pm, "krishnakant Mane" <[EMAIL PROTECTED]> wrote: > hello, > I have a very strange problem and I can't find any solution for that. > I am working on an accounting package which I wish to develop in python. > the simple problem is that I want to knoe how I can know if the given > dat

Re: Email

2007-08-02 Thread kyosohma
On Aug 2, 12:33 pm, Rohan <[EMAIL PROTECTED]> wrote: > I was wondering if there could be an arrangement where a file could be > attached and send as an email. > For ex > f = open(add.txt,w) > f.write('python') > f.close() > > Now I would like to send an email with add.txt as an attachment, is it >

Re: XML Processing

2007-08-02 Thread kyosohma
On Aug 2, 1:45 pm, Roman <[EMAIL PROTECTED]> wrote: > Is there a package that converts a string that contains special > characters in xml to to literal value. For instance, converts > stringhttp://myhome/¶mtohttp://myhome/¶m. > > Thanks in advance I've seen examples using the HTMLgen module. But

Re: XML Processing

2007-08-02 Thread kyosohma
On Aug 2, 2:09 pm, Jay Loden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Aug 2, 1:45 pm, Roman <[EMAIL PROTECTED]> wrote: > >> Is there a package that converts a string that contains special > >> characters in xml to to literal value. For instance, converts > >> stringhttp://myho

Re: problems playing with dates from any month.

2007-08-02 Thread kyosohma
On Aug 2, 1:16 pm, "krishnakant Mane" <[EMAIL PROTECTED]> wrote: > On 02/08/07, Ian Clark <[EMAIL PROTECTED]> wrote: > > > > >http://docs.python.org/lib/node85.html > > I looked there even before. > but could not figure out what the code did. > I know in that variable called s there was a string in

Re: Error subclassing datetime.date and pickling

2007-08-02 Thread kyosohma
On Aug 2, 11:02 am, Mike Rooney <[EMAIL PROTECTED]> wrote: > Hi everyone, this is my first post to this list. I am trying to create a > subclass of datetime.date and pickle it, but I get errors on loading it > back. I have created a VERY simple demo of this: > > import datetime > > class MyDate(dat

Re: Help: GIS

2007-08-03 Thread kyosohma
On Aug 2, 10:46 pm, zxo102 <[EMAIL PROTECTED]> wrote: > Hi, > I am new in GIS area and need your suggestions for where I can > start from. I have a python based web application with a database. > Now I would like to add a GIS map into my application. When a user > clicks a certain area in the

Re: How to create python script which can create csv we file with relationship

2007-08-03 Thread kyosohma
On Aug 3, 6:45 am, Sonu <[EMAIL PROTECTED]> wrote: > hello, > i need to create script > that can create a csv file as i want > for example i have two table in database that are person ,country > if i want to create csv file to person,then wht to do ,, > how to connect database,how to create csv of

Re: wxpython TreeCtrl with os.listdir

2007-08-03 Thread kyosohma
On Aug 3, 6:56 am, [EMAIL PROTECTED] wrote: > Hello, > > Does anybody know how can I "insert" os.listdir items in wx python > TreeCtrl and every item assign adequately > icon on this example > import wx > > class TestFrame(wx.Frame): > def __init__(self): > wx.Frame.__init__(self, None,

Re: How to log python Shell results

2007-08-03 Thread kyosohma
On Aug 3, 10:14 am, Colly <[EMAIL PROTECTED]> wrote: > How do I output the IDLE 1.2.1 Python Shell results to a log file. Redirect stdout to the log file. out = sys.stdout # save stdout for restoration later f = open(r'c:\test\test.log', 'w') sys.stdout = f # now stdout is redirected # do so

Re: downloading files

2007-08-03 Thread kyosohma
On Aug 3, 1:48 pm, Ehsan <[EMAIL PROTECTED]> wrote: > I foundd this code in ASPN Python Cookbook for downloading files in > python but when it finished downloading files the files became > corrupted and didn't open, the files in internet havn't any problem: > > def download(url,fileName): >

Re: Eclipse and Python

2007-08-03 Thread kyosohma
On Aug 3, 11:22 am, "Danyelle Gragsone" <[EMAIL PROTECTED]> wrote: > Does anyone have any suggested websites for learning Eclipse the python way? > > thanks, > Danyelle This article is a little old, but it might be helpful to you: http://www.ibm.com/developerworks/library/os-ecant/ I found this

Re: os.listdir path error

2007-08-03 Thread kyosohma
On Aug 3, 2:50 pm, [EMAIL PROTECTED] wrote: > Hello > > Here is my simple listdir example: > > >>> import os > >>> os.listdir("C:\Python24\") # This directory relly exists > > Here is my error: > > WindowsError: [Errno 3] The system cannot find the path specified: 'l/ > *.*' > > Regards, > Vedran

Re: the one python book

2007-08-04 Thread kyosohma
On Aug 4, 8:23 am, "dhr" <[EMAIL PROTECTED]> wrote: > newbie question: > > Is there a 'K&R" type of Python book? The book that you'd better have on > your shelf if you are going into Python? I would recommend "Programming Python 3rd Ed." by Lutz or "Core Python Programming" by Chun. Lutz has more

Re: something wrong with wxPython list ?

2007-08-04 Thread kyosohma
On Aug 4, 11:01 am, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > > All my posts to >[EMAIL PROTECTED] > seems to be rejected since today ? > > Is there anything wrong with that list ? > > thanks, > Stef Mientki Somehow I doubt the people on this list will know. I checked the ASPN archive

Re: webbrowser.open question force Firefox

2007-08-06 Thread kyosohma
On Aug 6, 5:42 am, Thomas Jollans <[EMAIL PROTECTED]> wrote: > On Monday 06 August 2007, dimitri pater wrote: > > > Hi, > > I have a question regarding the use of webbrowser.open. > > On a windows XP machine, MS-IE is set as the default browser so when I do: > > webbrowser.open('http://localhost:80

Re: Tkinter or wxpython?

2007-08-06 Thread kyosohma
On Aug 2, 7:00 pm, "wang frank" <[EMAIL PROTECTED]> wrote: > Hi, > > I want to build a GUI to execut python script. I found TKinter and > wxpython. Which one is easier for a newbie? and which one is better? > > Thanks > > Frank > > _ >

Re: Tkinter or wxpython?

2007-08-06 Thread kyosohma
I always end up typing it that way, I won't even > bother fixing the error) is easy to use for simple gui's, and it's > part of the standard python distro which for me is a big advantage (no > extra crap to download). However, the widget set is rather ugly and > doesn'

Re: Tkinter or wxpython?

2007-08-06 Thread kyosohma
nd it's > > part of the standard python distro which for me is a big advantage (no > > extra crap to download). However, the widget set is rather ugly and > > doesn't blend in well with anyone's native widgets; the widget > > selection itself is rather narrow, a

Re: computer, printer, and another

2007-08-06 Thread kyosohma
On Aug 6, 10:21 am, angga_cute <[EMAIL PROTECTED]> wrote: > Hi guys > I have some information for you... > I would like you to invite to visiting my web, may be you need some > information about newest information about computer, laptop, and than > printer. I have little bit information on my

Re: Tkinter or wxpython?

2007-08-06 Thread kyosohma
on distro which for me is a big advantage (no > > extra crap to download). However, the widget set is rather ugly and > > doesn't blend in well with anyone's native widgets; the widget > > selection itself is rather narrow, and I think kyosohma may be right > >

Re: Tkinter or wxpython?

2007-08-06 Thread kyosohma
On Aug 6, 12:49 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > I tried the PMW widget toolkit. It was ok, but it seemed kind of > > buggy. I found out about Tix on a forum of some sort. When I tried to > > find out how to get it and use it, all I found was conflicting

Re: wxWindows - incorrect path on installation?

2007-08-06 Thread kyosohma
On Aug 6, 12:54 pm, frikk <[EMAIL PROTECTED]> wrote: > This should be a very simple one, sorry! > > I installed wxWindows on my OS X box but I am unable to get my python > install to recognize the module. Unfortunately I don't know a whole > lot about where modules install to or how to configure p

Re: Importing * From a Package

2007-08-06 Thread kyosohma
On Aug 6, 9:06 am, "Patrick Doyle" <[EMAIL PROTECTED]> wrote: > Reading through the Python tutorial, I got to section 6.4.1, > "Importing * From a Package", which states: > > "If __all__ is not defined, the statement from Sound.Effects import * > does not import all submodules from the package Soun

Re: Any Good Book To Start ?

2007-08-06 Thread kyosohma
On Aug 6, 2:02 pm, Katie Tam <[EMAIL PROTECTED]> wrote: > Please let me know any good book to start ? Thank You > > Katie Tam > CCNP, CCDP > LinkWaves Corporation > **Leading Provider of Cisco Equipment**http://www.linkwaves.com To start learning Python or what? "Python Programming 3rd Ed." by Lu

Re: get position is scrolled wxScrolledWindow

2007-08-07 Thread kyosohma
On Aug 6, 11:20 pm, Astan Chee <[EMAIL PROTECTED]> wrote: > Hi, > I have a wxScrolledWindow, and some things drawn on it. I've hooked the > left click event to a certain function I've got. Anyway, everytime I do > a event.GetPosition() on the position of the mouse on the > wxScrolledWindow, it retu

Re: Tkinter or wxpython?

2007-08-07 Thread kyosohma
On Aug 7, 9:00 am, [EMAIL PROTECTED] (Cameron Laird) wrote: > In article <[EMAIL PROTECTED]>, > Paul Rubin wrote: > . > . > . > > > > >I should also add: there is also the possibility of running a Py

Re: python system subprocess win32

2007-08-07 Thread kyosohma
On Aug 7, 9:48 am, "mclaugb" <[EMAIL PROTECTED]> wrote: > Hello ALl, > I have a compiled program "conv.exe" that works as follows:>>conv.exe > > - > Please selection from the following options. press "h" for help, "p" for > print, "r" for readfile. > Enter your request

Re: python system subprocess win32

2007-08-07 Thread kyosohma
On Aug 7, 11:07 am, "mclaugb" <[EMAIL PROTECTED]> wrote: > At the moment, I cannot figure a way of running this precompiled "conv.exe" > using commandline arguments. > > Thus, I need Python to call the program, wait until it loads up, then enter > a known sequence of characters so that the function

Re: Dealing with multiple excel sheets

2007-08-07 Thread kyosohma
On Aug 7, 1:05 pm, Rohan <[EMAIL PROTECTED]> wrote: > Hello, > I would like to write a script which does the following job. > Take column1 and 7 from 10 different excel sheets and pasthe them into > a new excel worksheet. > Any ideas on how to do it > Thanks, Try studying this code: http://snippe

Re: Launch file from Python

2007-08-08 Thread kyosohma
On Aug 8, 12:28 pm, [EMAIL PROTECTED] wrote: > Good afternoon from someone who is trying to learn Python. > > I would like to launch an app from within a Python script. From the > examples I have found, I should be able to do this with os.system. > > I use this: > os.system("xplanet-1.2.0/xplanet.e

Re: Launch file from Python

2007-08-08 Thread kyosohma
On Aug 8, 1:11 pm, jocago <[EMAIL PROTECTED]> wrote: > The application, however, never runs. I'll give the sub-process a > shot. Thanks. Well, that's a problem. I suppose the best thing to try is use some smaller sets of flags and see if they work. Instead of your long string, try something small

Re: Launch file from Python

2007-08-08 Thread kyosohma
On Aug 8, 2:35 pm, Arnau Sanchez <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] escribió: > > > That's just the exit status or run status, if I recall correctly. I > > think 0 (i.e. False) means it didn't run properly and anything else is > > True, or ok. Something like that. > > The other way: 0 m

Re: wxPython before MainLoop

2007-08-09 Thread kyosohma
On Aug 9, 12:25 am, "[david]" <[EMAIL PROTECTED]> wrote: > I'd like to refresh the display before I start the main loop. > > I have code like this: > > app = App() > app.Show() > app.long_slow_init() > app.MainLoop() > > The main frame partly loads at Show, but because the mainloop has not > starte

Re: tests

2007-08-09 Thread kyosohma
On Aug 9, 8:21 am, nikolay marinov <[EMAIL PROTECTED]> wrote: > Hi, everyone.Does anybody have an idea how can i test two xls files for > equality with Python You should be able to read chunks of each file in binary mode and do a compare to check for equality. Some kind of loop should do the trick

Re: how to get command output using python

2007-08-09 Thread kyosohma
On Aug 9, 12:01 pm, Arnau Sanchez <[EMAIL PROTECTED]> wrote: > Steven Harms escribió: > > > In python it is quite easy: > > > import commands > > status, output = commands.getstatusoutput("my command") > > Uhm, this module has a big issue: > > (http://docs.python.org/lib/module-commands.html) > ---

Re: Puzzled by "is"

2007-08-09 Thread kyosohma
On Aug 9, 2:53 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Dick Moores wrote: > > At 10:46 AM 8/9/2007, Bill Scherer wrote: > >> Dick Moores wrote: > [...] > >> There is only one empty tuple. > >> Does that clear it up for you? > > > But isn't that the same as saying, "That's just the reality of

Re: Smoother Lines in Turtle Graphics

2007-08-10 Thread kyosohma
On Aug 9, 6:56 pm, tomy <[EMAIL PROTECTED]> wrote: > Hi All > I am a newbie to turtle graphics in python, so sorry if you find this > question too easy. > How can I get smoother lines in turtle graphics? > I am using python on windows. > > Thanks in advance You may be better off using PIL or pygam

Re: wxPython before MainLoop

2007-08-10 Thread kyosohma
On Aug 9, 8:51 pm, "[david]" <[EMAIL PROTECTED]> wrote: > I'm disappointed that I didn't get a wxPython solution. > > If the only way to get wxPython to correctly handle > this simple task is to code around it, I don't think > wxPython is really ready for Windows. > > Is there a better place to ask

Re: Python MAPI

2007-08-10 Thread kyosohma
On Aug 10, 5:05 am, vasudevram <[EMAIL PROTECTED]> wrote: > On Jul 23, 6:07 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

Re: The Future of Python Threading

2007-08-10 Thread kyosohma
On Aug 10, 5:57 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Justin T. wrote: > > Hello, > > > The nice thing is that this requires a fairly doable amount of work. > > First, stackless should be integrated into the core. Then there should > > be an effort to remove the reliance on the GIL for pyth

Re: deselect an iterm in ListBox wxPython

2007-08-11 Thread kyosohma
On Aug 11, 2:53 am, Bailu <[EMAIL PROTECTED]> wrote: > Hi, > >I am a newbie in wxPython and doing a program with ListBox, > I want to select and deselect items in this box, > I have use > > self.devlist = wx.ListBox(self, style=wx.LB_MULTIPLE) > self.Bind(wx.EVT_LISTBOX, self.select_dev, self.d

Re: wxPython - drawing without paint event

2007-08-12 Thread kyosohma
On Aug 12, 4:11 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > 7stud wrote: > > On Aug 12, 2:20 pm, Bjoern Schliessmann > [EMAIL PROTECTED]> wrote: > >> But any suggestions what's > >> better for a beginner? The (incomplete) tutorial surely not. > > > Another GUI toolkit. > > Well if all you have t

Re: Complexity of methods etc

2007-08-12 Thread kyosohma
On Aug 12, 7:04 pm, "Nathan Harmston" <[EMAIL PROTECTED]> wrote: > Hi, > > I was wondering if anyone knew of any resources, where I might be able > to find information about the complexity of certain python functions > or little tips on how to reduce complexity. I mean like the "".join(), > kind of

Re: C++ Runtime Library error message - Pythonwin?

2007-08-12 Thread kyosohma
On Aug 11, 5:48 pm, goldtech <[EMAIL PROTECTED]> wrote: > Hi, > > Doing GIS [Geographic Information Systems] scripts. > > I was running a batch clip script that worked OK for 126 iterations > then I got the following message: > > "Microsoft Visual C++ Runtime Library > > program: C:\python21\pytho

Re: Hex editor - Python beginner's code open to review

2007-08-12 Thread kyosohma
On Aug 10, 10:36 pm, CC <[EMAIL PROTECTED]> wrote: > Hi: > > http://web.newsguy.com/crcarl/python/hexl.py > > This is my first Python program other than tutorial code snippet > experimentation. I chose a hex line editor. I may do a hex screen > editor once this is done, if I feel like playing wit

Re: Finding gurus (was Re: Something in the function tutorial confused me.)

2007-08-13 Thread kyosohma
On Aug 13, 2:22 pm, Ricardo Aráoz <[EMAIL PROTECTED]> wrote: > Aahz wrote: > > In article <[EMAIL PROTECTED]>, > > Alex Martelli <[EMAIL PROTECTED]> wrote: > >> Because of this, a Google search for > > >> " " python > > >> may sometimes help; when you get 116,000 hits, as for "Steve Holden" > >> p

Re: wxPython - drawing without paint event

2007-08-13 Thread kyosohma
On Aug 13, 3:15 pm, Bjoern Schliessmann wrote: > [EMAIL PROTECTED] wrote: > > While the book does have issues, it is better (in my opinion) than > > the only published Tkinter book, although both books are now > > outdated. > > Outdated to a certain limit. It's quite a bit more recent than those

Re: Opinions about this new Python book?

2007-08-14 Thread kyosohma
On Aug 14, 7:05 am, Dick Moores <[EMAIL PROTECTED]> wrote: > I'd appreciate opinions about this new Python book. > > Title: Python Power!: The Comprehensive Guide > Author: Matt Telles > Publisher: Course Technology > Pub. Date: Jul 27, 2007 > Edition: 1st edition > Binding: Paperback > Pages:

Re: Script to copy database

2007-08-14 Thread kyosohma
On Aug 14, 7:30 am, "Tony" <[EMAIL PROTECTED]> wrote: > I'm new at this and would like to know how set up a script to copy a > database from a local computer to a network at a certain time everyday. > Should be simple enough, but, as of now I am unfamiliar with how to do this. > Would this be done

Re: Opinions about this new Python book?

2007-08-14 Thread kyosohma
On Aug 14, 12:46 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: > Yes, please post back to the list. I saw this book on Amazon, but > there's no table of contents listed, nor is there one on the > publisher's site. > > Thanks, > Shawn > > On 8/14/07, James Matthews <[EMAIL PROTECTED]> wrote: > > >

Re: ming on win32 anyone ? [help a noob]

2007-08-15 Thread kyosohma
On Aug 15, 9:46 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Aug 15, 8:03 am, "daz.diamond" <[EMAIL PROTECTED]> wrote: > > > hoping someone can help ... > > > how do I install ming (with python) on win32? have downloaded the tar.gz > > of ming-0.3.0 which doesn't have a handy self-instal

Re: Opinions about this new Python book?

2007-08-15 Thread kyosohma
On Aug 14, 1:43 pm, [EMAIL PROTECTED] wrote: > On Aug 14, 12:46 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: > > > > > Yes, please post back to the list. I saw this book on Amazon, but > > there's no table of contents listed, nor is there one on the > > publisher's site. > > > Thanks, > > Shawn

Re: Python Book Recommendations

2007-08-15 Thread kyosohma
On Aug 15, 10:30 am, Azazello <[EMAIL PROTECTED]> wrote: > On Aug 15, 7:47 am, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: > > > If I could have only one book, I would buy "Core Python, Second > > Edition," by Wesley Chun. > > > For the record, I own: > > Core Python, Second Edition (great) > > wxP

Re: Python, Sharepoint, .NET, NTLM

2007-08-15 Thread kyosohma
On Aug 15, 10:11 am, frikk <[EMAIL PROTECTED]> wrote: > Hey everyone, > I need to authenticate with a Sharepoint server. It looks to be > using 'NTLM' authentication. I've looked on the newsgroup and it > looks like there has been talk of using python and NTLM but no > definite solutions are app

Re: moving files in a seperate thread (and/or with progress?)

2007-08-15 Thread kyosohma
On Aug 15, 4:28 am, "Jorgen Bodde" <[EMAIL PROTECTED]> wrote: > Hi all, > > I want to make a small batch copy tool that scans for certain files, > and copies them to a specified directory. Since the files are huge > (AVI / DIVX) typical 300 to 700 Mb, I want to provide the user with > some feedback

Re: Move files/directories to Recycle Bin using standard Python libs

2007-08-15 Thread kyosohma
On Aug 15, 11:39 am, Kevin D. Smith <[EMAIL PROTECTED]> wrote: > I would like to move files and directories to the Recycle Bin on > Windows from Python. I have found some older articles describing how > to do this, but they require additional packages to be installed. I'm > working on a plugin fo

Re: Hijack! Different book: (was: Opinions about this new Python book?

2007-08-15 Thread kyosohma
On Aug 15, 12:52 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Wed, 15 Aug 2007 08:32:30 -0700, [EMAIL PROTECTED] declaimed the > following in comp.lang.python: > > > More on the subject...the writer is very conversational in tone and it > > makes for a light read in the first 1 1/2 chapter

Re: Move files/directories to Recycle Bin using standard Python libs

2007-08-15 Thread kyosohma
On Aug 15, 2:02 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On 8/15/07, Kevin D.Smith <[EMAIL PROTECTED]> wrote: > > > I would like to move files and directories to the Recycle Bin on > > Windows from Python. I have found some older articles describing how > > to do this, but they require addi

Re: Move files/directories to Recycle Bin using standard Python libs

2007-08-15 Thread kyosohma
On Aug 15, 2:55 pm, Kevin D. Smith <[EMAIL PROTECTED]> wrote: > On 2007-08-15 13:02:24 -0600, "Chris Mellon" <[EMAIL PROTECTED]> said: > > > Not easily. The recycle bin is part of the shell, and the shell api > > calls have very complicated struct parameters that are cumbersome to > > use correctly

Re: Downloading multiple csv files from a website

2007-08-17 Thread kyosohma
On Aug 17, 8:08 am, [EMAIL PROTECTED] wrote: > I'd like to download data from the > websitehttp://www.russell.com/Indexes/performance/daily_values_US.asp. On > this web page, there are links to a number of .csv files, and I'd like > to download all of them automatically each day. The file names ar

Re: best GUI library for vector drawing program

2007-08-17 Thread kyosohma
On Aug 17, 8:27 am, chewie54 <[EMAIL PROTECTED]> wrote: > Hello, > > What would be the best cross-platform GUI library to use for a vector > based CAD program ( something like Visio on Windows ) WxWidgets, > Tk, PyQt, Java Swing, Java SWT, I need the capibility to > draw and edit in a w

Re: Question on SPE and pwintypes.dll

2007-08-17 Thread kyosohma
On Aug 17, 8:38 am, Gerry <[EMAIL PROTECTED]> wrote: >I'm running SPE 8.3.c under XP, on a new PC. > >The files for SPE and Python were copied to the new machine, but > the OS wasn't migrated, so the registry didn't know about either. > >I reinstalled Python 2.5.1, and Python seems fine

Re: passing variables and values to texboxdisplays

2007-08-17 Thread kyosohma
On Aug 17, 6:57 am, yadin <[EMAIL PROTECTED]> wrote: > hi! > Can any one tell me why is it that i can't see my second frame and why > is the value of freq not Appended in the First frame ...thanks > I know it is wx python but it has to do with passing variables.thanks > > import wx > > def create(

Re: Hijack! Different book:

2007-08-17 Thread kyosohma
On Aug 16, 3:50 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Dennis Lee Bieber wrote: > > On Thu, 16 Aug 2007 04:21:07 -0700, Paul Boddie <[EMAIL PROTECTED]> > > declaimed the following in comp.lang.python: > > >> Is this the book that came out before TurboGears even reached 1.0, > >> probably hav

Re: Python and Tkinter Programming--Expensive!

2007-08-17 Thread kyosohma
On Aug 17, 12:59 pm, "W. Watson" <[EMAIL PROTECTED]> wrote: > Why is the book in Subject (author is Grayson) so expensive? $100 on Amazon > and $195 on ABE. Aren't there alternatives? > -- > Wayne Watson (Nevada City, CA) > > Web Page: Probably b

Re: wxpython log redirect

2007-08-17 Thread kyosohma
On Aug 16, 2:29 pm, [EMAIL PROTECTED] wrote: > Hello, > > Why this wx example don't return \nHELLO WORLD and other text in same > window: > > import wx > import logging > import sys > > def nekaj(): > print "\nHELLO WORLD" > > class WxLog(logging.Handler): > def __init__(self, ctrl): >

Re: wxPython with directpython

2007-08-18 Thread kyosohma
On Aug 18, 8:08 am, [EMAIL PROTECTED] wrote: > Hello, > > I'am using DirectPython 0.8, wxPython 2.8.4.2 (ansi) for Python 2.5 > and I'm running it on windows XP SP2. > When I run my wx program, and this program run directpython code: > > (I run it under wx frame) > > example code: > > import d3dx

Re: Canceling events on COM Objects in python

2007-08-18 Thread kyosohma
On Aug 17, 11:54 pm, Oliver Nelson <[EMAIL PROTECTED]> wrote: > I have MapPoint working in Python, and I'm trying to cancel events on > the map, but I can't seem to make that happen. I'm responding to the > events successfully in my panel object. My code is like this: > > global MapPointMod > Map

Re: wxPython with directpython

2007-08-18 Thread kyosohma
On Aug 18, 9:46 am, [EMAIL PROTECTED] wrote: > On 18 kol, 15:35, [EMAIL PROTECTED] wrote: > > > > > On Aug 18, 8:08 am, [EMAIL PROTECTED] wrote: > > > > Hello, > > > > I'am using DirectPython 0.8, wxPython 2.8.4.2 (ansi) for Python 2.5 > > > and I'm running it on windows XP SP2. > > > When I run m

Re: datetime in microseconds

2007-08-20 Thread kyosohma
On Aug 20, 6:52 am, [EMAIL PROTECTED] wrote: > Hi I have a time in microseconds, for example 0x8C905CBA7F84AF4. I > want this to a normal view in hh:mm:ss DD:MM:. I tried with > datetime, but it only takes a max of 100 microseconds is there > another solution? Just truncate the value so th

Re: Python equivalent of Perl's $/

2007-08-20 Thread kyosohma
On Aug 19, 1:13 pm, John K Masters <[EMAIL PROTECTED]> wrote: > I am currently working my way through Jeffrey Friedl's book Mastering > Regular Expressions. Great book apart from the fact it uses Perl for the > examples. > > One particular expression that interests me is '$/ = ".\n"' which, > rathe

Re: Newbee Question

2007-08-20 Thread kyosohma
On Aug 20, 9:23 am, "HD1956" <[EMAIL PROTECTED]> wrote: > This is probably a simple code. I am a truck driver who gets paid by > stops and cases. I am trying to figure out how to code my stop pay. I > get 40 cents per stop up to 22 stops, and $1.40 per stops after that. def calc(num): if n

Re: Newbee Question

2007-08-20 Thread kyosohma
On Aug 20, 9:58 am, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: > On 8/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > On Aug 20, 9:23 am, "HD1956" <[EMAIL PROTECTED]> wrote: > > > This is probably a simple code. I am a truck driver who gets paid by > > > stops and cases. I am trying

Re: str().join() isn't working

2007-08-20 Thread kyosohma
On Aug 20, 1:16 pm, "Robert Dailey" <[EMAIL PROTECTED]> wrote: > here is a more realized example of the lists I'm trying to join: > > _user_includes = [ > "../src", > "../resource", > "../inc", > "../src", > "../data", > "../gui", > "../script

Re: The folder a script is executed in

2007-08-21 Thread kyosohma
On Aug 21, 10:23 am, Benjamin <[EMAIL PROTECTED]> wrote: > On Aug 21, 4:10 am, [EMAIL PROTECTED] wrote:> Hi, > > > How do I find out what folder a script is in while it is executing? > > > For example, for the file "C:/folder/script.py" contain the following > > two lines of code - > > > myLocation

Re: How to optimise this code?

2007-08-21 Thread kyosohma
On Aug 21, 10:59 am, "David N Montgomery" <[EMAIL PROTECTED]> wrote: > class testCase: > def __init__(self, tc): > if tc == 1:self.testCase1() > if tc == 2:self.testCase2() > if tc == 3:self.testCase3() > if tc == 4:self.testCase4() > if tc == 5:self.test

Re: str().join() isn't working

2007-08-21 Thread kyosohma
On Aug 20, 8:18 pm, Asun Friere <[EMAIL PROTECTED]> wrote: > On Aug 21, 4:34 am, [EMAIL PROTECTED] wrote: > > > to concatenate 2 lists to each other before it does the join, ... is > > impossible in Python. The "+" operator is only for addition and for > > two or more strings. > > Really? > > >>> [

Re: Question: wxpython and 3d engine example with model load ?

2007-08-23 Thread kyosohma
On Aug 23, 4:11 am, OpenPavilion <[EMAIL PROTECTED]> wrote: > Hello, > > did anyone succeed in combining wxpython and a 3d engine (pyogre, > crystalblend, panda3d, soya etc.) ? > > I would like to create an application, which uses wxpython tree, menu > and grid elements and embedds a 3d view of som

Re: How would I go about making a file open. Not the way you might think.

2007-08-23 Thread kyosohma
On Aug 23, 2:09 am, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: > Lamonte Harris wrote: > >Basically you can open a file by double clicking, and by default it would > >open > > w/ what every program you have it set >to. Most text files would open in > notepad. How can I make a txt open so t

Re: comparing two lists

2007-08-23 Thread kyosohma
On Aug 23, 11:27 am, Ladislav Andel <[EMAIL PROTECTED]> wrote: > Hi, > what would be the most efficient way to do following? > > I have a list of dictionaries taken from DB e.g. > dblist = [{'id:1, 'host':'google.com','ip_address':'1.2.3.4'}, > {'id:3, 'host':'yahoo.com','ip_address':'5.6.7.8'}, >

Re: how to select between two file libraries with same name?

2007-08-23 Thread kyosohma
On Aug 23, 1:46 pm, jmborr <[EMAIL PROTECTED]> wrote: > Imagine my file one.py contains the statement > import two > If there's a two.py in same directory as one.py, then this file will > be loaded. However, I want to load a different file named also two.py, > say file ~username/mypythonlib/two.py

Re: Newbie: List file system roots

2007-08-23 Thread kyosohma
On Aug 23, 2:48 pm, "Einar W. Høst" <[EMAIL PROTECTED]> wrote: > Hi, > > How would you list the file system roots in Python? That is, I'm looking > for a way to list all connected drives (C:, D: etc) on a Windows box, or > all /root, /tmp etc on a *nix box. In Java, there's a built-in API > functio

Re: How would I go about making a file open. Not the way you might think.

2007-08-23 Thread kyosohma
On Aug 23, 3:45 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > Hendrik van Rooyen wrote: > > Lamonte Harris wrote: > > >> Basically you can open a file by double clicking, and by default it would > >> open > > w/ what every program you have it set >to. Most text files would open in > > notepad. H

Re: creating a tar file with python

2007-08-24 Thread kyosohma
On Aug 24, 10:33 am, Ed Leafe <[EMAIL PROTECTED]> wrote: > On Aug 24, 2007, at 11:24 AM, Carsten Haese wrote: > > > You clearly have no idea who you're talking to. I suggest you > > Google for > > '"Steve Holden" Python' to get a clue. Good luck finding any more help > > here. > > Even if i

Re: How to replace a method in an instance.

2007-08-24 Thread kyosohma
On Aug 24, 11:02 am, "Steven W. Orr" <[EMAIL PROTECTED]> wrote: > In the program below, I want this instance to end up calling repmeth > whenever inst.m1 is called. As it is now, I get this error: > > Hello from init > inst = <__main__.CC instance at 0x402105ec> > Traceback (most recent call last)

Re: How to replace a method in an instance.

2007-08-24 Thread kyosohma
On Aug 22, 12:48 am, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] a écrit : > > > > > On Aug 24, 11:02 am, "Steven W. Orr" <[EMAIL PROTECTED]> wrote: > > >>In the program below, I want this instance to end up calling repmeth > >>whenever inst.m1 is called. As it is now, I get

Re: wx.grid and different Value Choice each line ?

2007-08-27 Thread kyosohma
On Aug 27, 5:08 am, BH <[EMAIL PROTECTED]> wrote: > Hi, > > Hox can I have different value choice for each line in a grid with > wxPython ? > I want to develop a small software for satisfaction surveys. Each line > of the grid is a different question. Sometimes answers are the sames > between two l

Re: wxpython on FreeBSD 6.2 broken

2007-08-27 Thread kyosohma
On Aug 26, 7:35 am, Michael S <[EMAIL PROTECTED]> wrote: > Good day all, > > I was wondering if anyone was using the latest > wxpython on FreeBSD 6. I just installed it yesterday > as well as wxGlade. wxGlade doesn't function properly > - it does not display any controls. I then tried some > simple

Re: Best open source Python online *CHAT* apps?

2007-08-27 Thread kyosohma
On Aug 27, 3:12 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Best open source Python online chat apps? > > I believe there are a few PHP online chat apps to allow people to have > conversation > via a web server but a Python one would soothe the soul. > > Any available? > > Thanks, > > Chri

Re: Getting subprocesses to be hidden on Windows

2007-08-27 Thread kyosohma
On Aug 27, 3:21 pm, geoffbache <[EMAIL PROTECTED]> wrote: > Hi, > > As part of my efforts to write a test tool that copes with GUIs > nicely, I'm trying to establish how I can start a GUI process on > Windows that will not bring up the window. So I try to hide the window > as follows: > > info = su

Re: Getting subprocesses to be hidden on Windows

2007-08-28 Thread kyosohma
On Aug 28, 4:08 am, geoffbache <[EMAIL PROTECTED]> wrote: > On Aug 27, 11:28 pm, [EMAIL PROTECTED] wrote: > > > > > On Aug 27, 3:21 pm, geoffbache <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > As part of my efforts to write a test tool that copes with GUIs > > > nicely, I'm trying to establish how

<    1   2   3   4   5   6   7   8   >