Re: Inheriting Object

2011-05-19 Thread William
multiple inheritance, you can't multiply inherit from different built-in types. Some new features such as property() is not supported in type either. BRs William On 01/-9/-28163 03:59 AM, Navkirat Singh wrote: > Hi Guys, > > I have been wondering for a while now as to wh

Re: Inheriting Object

2011-05-19 Thread William
x27;t multiply inherit from different built-in types, what's more you could not use some builtin feature such as property. BRs William On 01/-9/-28163 03:59 AM, Navkirat Singh wrote: > Hi Guys, > > I have been wondering for a while now as to why some classes inherit > Object? And

How use Distutils for plugins ?

2005-09-24 Thread william
s installed place by using the Main.__file__ variable. Any ideas ? Thanks William --- http://www.opensource4you.com/ -- http://mail.python.org/mailman/listinfo/python-list

urllib on windows machines

2005-12-03 Thread william
//www.google.com') " C:\Temp>python test.py Traceback (most recent call last): File "test.py", line 2, in ? g=urllib.urlopen('http://www.google.com') File "c:\william\tools\python24\lib\urllib.py", line 77, in urlopen return opener.open

Re: urllib on windows machines

2005-12-03 Thread william
t; platform.python_build() (67, 'Sep 28 2005 12:41:11') > So off-hand, I'd suspect some firewall thingie is getting in the way. > Can you "bless" \Python24\python.exe and \Python24\pythonw.exe as > applications allowed to do net traffic? > Bingo! That's the problem: "Blocked outgoing TCP - Source Local: (1898) Destination: 67.18.1.164: http(80)" But why the "telnet www.google.com 80" is wroking ? Why Firefox is running ? Thanks. William -- http://mail.python.org/mailman/listinfo/python-list

python chat

2011-11-20 Thread William
llib2, etc.), then contact us through http://www.studybrunch.com/contact/ so we don't spam the list. I have listed some preliminary times on the site in EST, but let me know on the site if you can't make those and I can try to schedule another session later in the week.    B

Re: csv format to DBase III format

2006-01-06 Thread William
Peter Otten wrote: > [EMAIL PROTECTED] wrote: > > > I need to transfer csv format file to DBase III format file. > > How do i do it in Python language? > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/362715 > > Peter Hi, I create a dbf file, it can be opened by Excel but it cannot be

Re: csv format to DBase III format

2006-01-10 Thread William
Peter Otten wrote: > William wrote: > > > Peter Otten wrote: > >> [EMAIL PROTECTED] wrote: > >> > >> > I need to transfer csv format file to DBase III format file. > >> > How do i do it in Python language? > >> > >> http://

Re: BeautifulSoup error

2006-06-16 Thread William
;s the feed method implemented by SGMLParser and calling it will bypass Beautiful Soup and cause problems. Thanks for all the help ! -- William Thrashing is just virtual crashing. -- http://mail.python.org/mailman/listinfo/python-list

Re: warning for google api users

2006-02-22 Thread William
Isn't this because the index that the api uses is (a lot) older than the index used by www.google.com? total results are always estimated, so they are not reliable (seen the variance) Gabriel B. schreef: > the google webservices (aka google API) is not even close for any kind > of real use yet >

build windows module for python-2.4

2006-03-04 Thread william
Does any one having working python 2.4 compiler can give some details on how to set it up ? I've read lot of different website, but some are outdated, others referencing dead links, ... I would just use an existing python 2.3 module (VC6) to python-2.4. I think the best is to recompile it with VC

questions about object references

2009-08-07 Thread William
):    self.a=a    self.b=b   def myfunc(self):     return self.a+self.b myclass=MyClass(3,4) myclass.myfunc2=myclass.myfunc Is there any way to find all the references to myclass.myfunc--in this case, myclass.myfunc2? Thanks, William is there a way to -- http://mail.python.org/mailman

Re: reloading the module imported as 'from ... import ...'

2009-08-10 Thread William
What about using the reimport library? http://code.google.com/p/reimport/ Cheers, William From: AlF To: python-list@python.org Sent: Monday, August 10, 2009 1:48:31 AM Subject: Re: reloading the module imported as 'from ... import ...' Steven D&#x

Re: Is there any package implanation the following arithmetics?

2009-08-11 Thread William
What you want is: http://www.cgal.org/ I believe it has python bindings. Cheers, William From: Emile van Sebille To: python-list@python.org Sent: Tuesday, August 11, 2009 12:49:19 PM Subject: Re: Is there any package implanation the following arithmetics? On

Re: SQLObject 0.11.0

2009-08-12 Thread William
I don't want to start a flame war and would just like some information before diving in-- What are some the advantages and disadvantages of SQLObject compared to SQLAlchemy? Thanks, William From: Oleg Broytmann To: Python Mailing List ; Python Ann

Re: Komodo(!)

2009-08-14 Thread William
Personally, I rather like Wing From: Kee Nethery To: python-list@python.org Sent: Friday, August 14, 2009 3:28:54 PM Subject: Re: Komodo(!) >From the web site it looks like the free version does not include the >debugging stuff. I've been using the paid versi

Re: IDE for python similar to visual basic

2009-08-28 Thread William
For visual designers, you may try: QTDesigner with PyQt or WxForms or WxGlade or BoaConstructor with WxPython It's not like VB.NET where you can put in callbacks write after doing layout, but some prefer the above designers to hand coding guis.  Good luck, William --- On Fri, 8/28/09

Re: Python for professsional Windows GUI apps?

2009-08-30 Thread William
For wxFormbuilder, does it also support AUI (dockable windows,etc.)? Thanks, William --- On Wed, 8/26/09, Robert Kern wrote: From: Robert Kern Subject: Re: Python for professsional Windows GUI apps? To: python-list@python.org Date: Wednesday, August 26, 2009, 7:40 PM On 2009-08-26 18:08 PM

Re: Why on CentOS, python consumes too much memory ?

2013-07-18 Thread William Bai
I found that it was caused by not by python but by /usr/lib/locale/locale-archive, the same problem as that described in http://illiterat.livejournal.com/4615.html. William 在 2013年7月18日星期四UTC+8下午12时45分01秒,William Bai写道: > Hi: > > > >Previously, we found that our python

Current Web URL

2012-01-25 Thread William Abdo
navigation bar so it can be parsed? I tried this "response = urllib2.urlopen('http://www.google.com').geturl()" however it seems to always to give me the google url and not the one in the navigation bar. Any Suggestions Please? Respectfully, William Abdo This email

Re: Lisp refactoring puzzle

2011-07-13 Thread William Clifford
nough to allow expansion, but have enough "obvious" features, that one doesn't have to reinvent the wheel. I recently read somewhere that human languages "differ less in what they allow, and more in what they require" (paraphrase). I have little-to-no computer science expertise, but I sense that in computer languages with Turing equivalency this is exactly true. -- William Clifford -- http://mail.python.org/mailman/listinfo/python-list

Help parsing a text file

2011-08-29 Thread William Gill
I haven't done much with Python for a couple years, bouncing around between other languages and scripts as needs suggest, so I have some minor difficulty keeping Python functionality Python functionality in my head, but I can overcome that as the cobwebs clear. Though I do seem to keep trippin

Re: Help parsing a text file

2011-08-29 Thread William Gill
On 8/29/2011 2:31 PM, Philip Semanchuk wrote: If the syntax really is close to XML, would it be all that difficult to convert it to proper XML? Then you have nice libraries like ElementTree to use for parsing. Possibly, but I would still need the same search algorithms to find the opening

Re: Help parsing a text file

2011-09-01 Thread William Gill
On 9/1/2011 1:58 PM, JT wrote: On Monday, August 29, 2011 1:21:48 PM UTC-5, William Gill wrote: I have a text file with XML like records that I need to parse. By XML like I mean records have proper opening and closing tags. but fields don't have closing tags (they rely on line ends). No

Functions vs OOP

2011-09-03 Thread William Gill
During some recent research, and re-familiarization with Python, I came across documentation that suggests that programming using functions, and programming using objects were somehow opposing techniques. It seems to me that they are complimentary. It makes sense to create objects and have so

Re: Functions vs OOP

2011-09-03 Thread William Gill
On 9/3/2011 12:29 PM, MRAB wrote: I think you mean "complementary". :-) How polite of you to point out my spelling deficiency. I guess shouldn't be watching football while typing (I'm sure the beer didn't help either). I think that it's all about "state". In functional programming, there's

Re: Functions vs OOP

2011-09-03 Thread William Gill
On 9/3/2011 2:50 PM, Ian Kelly wrote: I think you may be confusing "functional programming" and "programming using functions". These are not the same thing. I think you may be right, Ian. It didn't make much sense -- http://mail.python.org/mailman/listinfo/python-list

Re: Functions vs OOP

2011-09-03 Thread William Gill
On 9/3/2011 3:15 PM, Terry Reedy wrote: William Gill wrote: During some recent research, and re-familiarization with Python, I came across documentation Ours, or someone else's? Python. Since in Python, everything is an object, that would mean that every function has to be a m

Re: Functions vs OOP

2011-09-03 Thread William Gill
On 9/3/2011 5:39 PM, Ben Finney wrote: William Gill writes: On 9/3/2011 3:15 PM, Terry Reedy wrote: William Gill wrote: During some recent research, and re-familiarization with Python, I came across documentation Ours, or someone else's? Python. Can you show exactly where i

Re: Functions vs OOP

2011-09-03 Thread William Gill
On 9/3/2011 9:51 PM, Terry Reedy wrote: It is possible that our doc was less than crystal clear. We are constantly improving it where we can see fixable faults. If you run across whatever it was and it still seems a bit muddy, post something again. Will do. Thanks. -- http://mail.python.org/m

Re: Functions vs OOP

2011-09-04 Thread William Gill
nd the Wikipedia article. Given that our docs are written by people who do understand the technical distinction, you are probably wrong to assume otherwise. However, as I said to William, it is possible that our docs could be improved so as to not depend on all readers having prior knowledg

Re: Functions vs OOP

2011-09-04 Thread William Gill
On 9/4/2011 7:41 PM, Steven D'Aprano wrote: William Gill wrote: The source of my error is "Functional Programming HOWTO (/python-3.1.3-docs-html/howto/functional.html)" For those who don't have access to William's local file system, I expect he's looking at

Re: Functions vs OOP

2011-09-05 Thread William Gill
On 9/4/2011 9:13 AM, rusi wrote: On Sep 3, 9:15 pm, William Gill wrote: During some recent research, and re-familiarization with Python, I came across documentation that suggests that programming using functions, and programming using objects were somehow opposing techniques. Staying with

Re: Functions vs OOP

2011-09-05 Thread William Gill
On 9/3/2011 12:25 PM, Steven D'Aprano wrote: William Gill wrote: Are they suggesting that any function that takes an object as an argument should always be a method of that object? Yes. I can think of times when a special application, such as a converter, would take an object

Re: Functions vs OOP

2011-09-05 Thread William Gill
On 9/5/2011 3:04 PM, Jean-Michel Pichavant wrote: William Gill wrote: Not to split hairs, but syntactically f(x) is a function in many programming paradigms. As I understand it functional programming places specific requirements on functions, i.e.referential transparency. So f(x) may or may

RE: CentOS 5.5 x86_64 rpmbuild from source

2011-03-08 Thread William S .
I will answer myself. For those interested, because rpm will break the dependencies on the OS, you can install 2.7 with a simple bash script: http://willsani.com/2011/03/02/centos-5-5-x86_64-install-python-2-7/ Regards, Will -- http://mail.python.org/mailman/listinfo/python-list

Re: Inheriting Object

2011-05-19 Thread William . Bai
x27;t multiply inherit from different built-in types, what's more you could not use some builtin feature such as property. BRs William On 01/-9/-28163 03:59 AM, Navkirat Singh wrote: > Hi Guys, > > I have been wondering for a while now as to why some classes inherit > Object? And

Re: Any good explanations on pd.merge(df,df2, on=['Code', 'Region'])

2017-11-08 Thread William Ayd
Assuming df and df2 are dataframes you are essentially doing a SQL-like join of the two objects where the records within match on both the Code and Region columns Sent from my iPhone -- https://mail.python.org/mailman/listinfo/python-list

RE: Trace back error just trying to run a simple import of requests

2018-02-01 Thread William Sewell
@01D39B71.014E8850] Dr. William Sewell Direct Line: 385.428.5377 Toll Free: 877.435.7948 ext 5377 Course Instructor, IT WGU will be closed President's Day, February 19th. Mountain Time Office hours: Sun 3:00 PM - 8:00 PM, Mon 6:30 AM - 3:30 PM, Tue 9:30 AM - 6:30 PM, Wed 9:00 AM - 5:00 PM, Thu 6:

RE: Trace back error just trying to run a simple import of requests

2018-02-01 Thread William Sewell
It is allright. I just cannot account for the sudden change. In my usual path everything worked fine. Now, I have to navigate to where the Python executable, even though I have added the path to the Windows path. Please close my case. Dr. William Sewell Direct Line: 385.428.5377 Toll Free

Re: ImportError: The ``fake-factory`` package is now called ``Faker``.

2016-12-20 Thread William Mayor
I came across this error this morning. In my case I was running a script that did this: “pip install fake-factory” The install worked properly but then I couldn’t import the library (with the same error message as you). I had to update the pip install command to say “pip install Faker” and then

[no subject]

2020-01-04 Thread William Johnsson
Hello! My name is William and im 14 years old and live in sweden. Im pretty new to programing in python and i need some help with code, (That’s why i’m here). But i couldn’t really find what i was searching for on the internet. I’m trying to write code that can check only the first line in a

Puzzling difference between lists and tuples

2020-09-17 Thread William Pearson
I am puzzled by the reason for this difference between lists and tuples. A list of with multiple strings can be reduced to a list with one string with the expected results: for n in ['first','second']: print n for n in ['first']: print n The first loop prints "first", "second", and the

Re: Simple Dialogs

2005-09-29 Thread William Park
If you must run it inside Python, then you should look into Python wrapper for GTK+, and write the code yourself. -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html BashDiff: Su

Re: Dynamic character substitution.

2005-09-29 Thread William Park
s > arrays data1(1000,2), data2(1000,2).. > > *vread,data%n%,filename%n%#fills arrays with data > from filename1,. I await English translation of the above. -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-11 Thread William Park
; > Yeah, "if C then A else B" is a ancient tradition stretching from > Algol-60 to OCAML, and who knows what all else in between. I'm not > sure what Guido saw in the "A if C else B" syntax but it's not a big > deal. Perhaps, he's preparing Python for

Re: need some advice on x y plot

2005-10-21 Thread William Park
s since january of 1970 doesn't make a neat chart. > > any suggestions? Python is capable of integer arithmetic, eg. >>> 2000 - 500 1500 -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http:

Re: best way to replace first word in string?

2005-10-21 Thread William Park
expressions > and I sure there is a lot ways, but I need realy efficient one I doubt you'll find faster than Sed. man sed -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html

Re: best way to replace first word in string?

2005-10-22 Thread William Park
Chris F.A. Johnson <[EMAIL PROTECTED]> wrote: > On 2005-10-22, William Park wrote: > > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> I am looking for the best and efficient way to replace the first word > >> in a str, like this: > >> "aa

Re: XML GUI

2005-11-09 Thread William Park
for Python projects...even > Jython. If you're talking about simple "dialog" thing, where you ask question and users respond, then take a look at http://home.eol.ca/~parkw/index.html#gtk Also, you may want to look at Glade which spits out the layout in XML. But, for more intricate t

Re: Python choice of database

2005-06-20 Thread William Park
t; As I start with Python objects, I thought of using shelve, but looking > at the restrictions (record size + potential collisions) I feel I > should study my options a bit further before I get started. Possible approach might be: 1. 5000 files -- my personal favourite. 2. GDB

'custom' events ?

2005-06-22 Thread William Gill
I am trying to create a Python UI in Tkinter and have several (frame) widgets that display various data fields. I am trying to create a 'changed' event that each widget can trigger when they have been edited. I see lots of references that suggest that 'custom' events can be created, but have

a comprehensive Tkinter document?

2005-06-22 Thread William Gill
I know a major problem I am having is that I am finding lots of Tkinter information in 'fragments' of various , sometimes conflicting vintages. For example the python reference I was using didn't show the '%%' as an escape sequence, I posted asking how to escape the '%' and after several help

Re: a comprehensive Tkinter document?

2005-06-22 Thread William Gill
Kent Johnson wrote: > William Gill wrote: > >> I know a major problem I am having is that I am finding lots of >> Tkinter information in 'fragments' of various , sometimes conflicting >> vintages. For example the python reference I was using didn't sho

pass an event up to parent widget

2005-06-23 Thread William Gill
I have a Tkinter (frame) widget that contains several other frame widgets, each containing entry widgets. In the parent frame I have a 'save' button that is initially disabled. As it is now, each widget has a hasChanged property that I can poll to see if updates to the source data need to be

Re: Favorite non-python language trick?

2005-06-25 Thread William Heymann
On Friday 24 June 2005 02:53 pm, D H wrote: > Again, you are splitting hairs. His point still stands that it is not > possible to do method overloading in python (unless you use decorator > hacks). It may be possible to add this feature when type declarations > and type checking are added to a f

tkinter radiobutton

2005-06-25 Thread William Gill
I am placing radiobuttons in a 4 X 4 matrix (using loops) and keep references to them in a 2 dimensional list ( rBtns[r][c] ). It works fine, and I can even make it so only one button per column can be selected, by assigning each column to an intVar. In many languages a radiobutton has a prop

Re: tkinter radiobutton

2005-06-27 Thread William Gill
d have to loop through all four intVars four times to determine which radiobuttons are selected in each row. That's what I mean by messy. Bill Eric Brunel wrote: > On Sat, 25 Jun 2005 19:34:50 GMT, William Gill <[EMAIL PROTECTED]> wrote: > >> I am placing radiob

Re: tkinter radiobutton

2005-06-28 Thread William Gill
different intVar to each 'column', but I can't figure out how to 'slice' them horizontally w/o breaking their vertical relationships. Bill Peter Otten wrote: > William Gill wrote: > > >>I am placing radiobuttons in a 4 X 4 matrix (using loops) and kee

Re: tkinter radiobutton

2005-06-28 Thread William Gill
e column information (intVar values) to row information. Bill Peter Otten wrote: > William Gill wrote: > > >>The radiobutton widget knows if it is selected or unselected, or it >>wouldn't be able to display correctly, but based on what I'm seeing, >>that

Re: tkinter radiobutton

2005-06-28 Thread William Gill
or var in self.variables' perform the comparison row == var.get() for each item in self.variables? I would have had to write: for var in self.variables: return row == var.get() Again, thanks. Bill Peter Otten wrote: > William Gill wrote: > > >>I thought the problem w

Re: tkinter radiobutton

2005-06-28 Thread William Gill
Radiogrid doesn't initialize w/row 1 selected, and accomodates cases where nothing is selected in any column. Bill Peter Otten wrote: > William Gill wrote: > > >>I thought the problem was practical, not philosophical, but what do I >>know I'm the one asking for help.

Re: tkinter radiobutton

2005-06-29 Thread William Gill
initialize as no choice ... will be clearer. Thanks again! Bill Peter Otten wrote: > William Gill wrote: > > >>Also, does 'row == var.get() for var in self.variables' perform the >>comparison row == var.get() for each item in self.variables? I would >>have h

Re: Escaping commas within parens in CSV parsing?

2005-07-03 Thread William Park
changing '(' or ')' into three double-quotes '"""'? That will solve splitting issue. But, I'm not sure how you would get back '(' or ')', without much coding. -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html BashDiff: Super Bash shell http://freshmeat.net/projects/bashdiff/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter grid layout

2005-07-06 Thread William Gill
Excuse me for intruding, but I followed examples and ended up with a similar architecture: from Tkinter import * class MyMain(Frame): def __init__(self, master): self.root = master self.master=master root = Tk() app = MyMain(root) app.ma

Re: Tkinter Button widget

2005-07-14 Thread William Park
nd, next time, remember to post some code alongside > with your question. Hmm, maybe I should learn Tk + Python. Telepathetic powers of Python programmers are amazing. -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive ht

Re: all possible combinations

2005-07-14 Thread William Park
echo {a,b,c}{a,b,c}{a,b,c}{a,b,c} or maybe two, abc=(a b c) echo {^abc}{^abc}{^abc}{^abc} -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html BashDiff: Super Bash shell http://freshmeat.net/projects/bashdiff/ -- http://mail.python.org/mailman/listinfo/python-list

Python vs. Access VBA

2005-07-15 Thread William Lodge
I'm at a loss on how to compare Python vs. Access VBA for a database project. I'm estimating 20 tables and several forms and reports. Some of the tables could grow to many thousands of rows w/i a year or so. The app would be resident on my client as no network connectivity is needed b/c I'll be the

Re: Parsing html :: output to comma delimited

2005-07-16 Thread William Park
to use, examples... Thanks! I'm sure others will give proper Python solution. But, here, shell is not a bad tool. lynx -dump 'http://www.rentalhq.com/store.asp?id=907%2F272%2D4425' | \ awk '/Return to List of Rental Stores/,/To reserve an item/'

main window in tkinter app

2005-07-18 Thread William Gill
A short while ago someone posted that(unlike the examples) you should use Tk as the base for your main window in tkinter apps, not Frame. Thus : class MyMain(Frame): def __init__(self, master): self.root = master self.master=master self

Re: main window in tkinter app

2005-07-19 Thread William Gill
repeat of the original problem I will post the code and the exact error message, but at least now I know It SHOULD work. Thanks Bill, Eric Brunel wrote: > On Mon, 18 Jul 2005 16:57:51 GMT, William Gill <[EMAIL PROTECTED]> wrote: > >> A short while ago someone posted that(unl

Re: main window in tkinter app

2005-07-19 Thread William Gill
lf.var ('1') import os from Tkinter import * class MyApp(Tk): var=1 def __init__(self): pass def getval(self): return self.var app = MyApp() app.title("An App") print app.getval() app.mainloop() Eric Brunel wrote: > On Mon, 18 Jul 2005 16:57:51 GM

Re: main window in tkinter app

2005-07-19 Thread William Gill
It also seems to operate the same with or without " app.mainloop()". Is an explicit call to mainloop needed? William Gill wrote: > O.K. I tried from scratch, and the following snippet produces an > infinite loop saying: > > File "C:\Python24\lib\lib-tk\Tkinter.py&

Re: How to kill easygui dialog?

2005-07-19 Thread William Park
der to call it from Python, you'd have to use os.system(), and store the shell variable to file or print it out to stdout. Then, you can read it back from Python. In fact, you can feed the input data directly from Python to shell. -- William Park <[EMAIL PROTECTED]>, Toronto, Canada T

Re: main window in tkinter app

2005-07-20 Thread William Gill
ometing in baseclass.__init() not taking place, but the recursion loop didn't give me a clue. Any idea why failing to init the base class caused the loop? Bill Christopher Subich wrote: > William Gill wrote: > >> O.K. I tried from scratch, and the following snippet produces

Re: how to build email message with attachment?

2005-07-26 Thread William Park
praba kar <[EMAIL PROTECTED]> wrote: > Dear All, > >Can any one let me know? How to build > email in python? with some some examples. If all else fails, mutt -a ... -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client

Re: Why Tcl/Tk?

2005-07-27 Thread William Park
the DrPython IDE that uses wxpython. But > that makes no sense, Tk is based on Tcl, a scripting > language, but wx is written in C++. Old habits die hard. Soon, these folks will die off, and we'll be left with GTK+ or wxWidgets. -- William Park <[EMAIL PROTECTED]>, Toronto, Can

Re: Why Tcl/Tk?

2005-08-02 Thread William Park
Thomas Bartkus <[EMAIL PROTECTED]> wrote: > > "William Park" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Jerry He <[EMAIL PROTECTED]> wrote: > > > I'm a little curious, why does most scripting > > > languges(i

cut & paste text between tkinter widgets

2005-08-03 Thread William Gill
Is there a simple way to cut and paste from a tkinter text widget to an entry widget? I know I could create a mouse button event that triggers a popup (message widget) prompting for cut/paste in each of the widgets using a temp variable to hold the text, but I don't wnat to reinvent the wheel

Re: cut & paste text between tkinter widgets

2005-08-03 Thread William Gill
>> Is there a simple way to cut and paste from a tkinter text widget to >> an entry widget? I know I could create a mouse button event that >> triggers a popup (message widget) prompting for cut/paste in each of >> the widgets using a temp variable to hold the text, but I don't wnat >> to re

Re: cut & paste text between tkinter widgets

2005-08-04 Thread William Gill
handy. Thanks, Bill [EMAIL PROTECTED] wrote: > Here's some code that gives a cut-copy-paste pop-up window on all Entry > widgets > in an application. > > This code is released into the public domain. > > Jeff Epler > # >

Re: sample code for parsing html file to get contents of td fields

2005-08-04 Thread William Park
e.eol.ca/~parkw/index.html#expat Expat is everywhere. Python has it and even Gawk has it. -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html BashDiff: Super Bash shell

Re: Splitting a string into groups of three characters

2005-08-08 Thread William Park
"${a|?...}" # extract '...' separators pp_collapse # remove null items printf '{%s}\n' "[EMAIL PROTECTED]" Translating to Python is left as homework. -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFla

problem extending tkSimpleDialog.Dialog

2005-08-12 Thread William Gill
I have created a widget that extends Frame() and contains labels, checkboxes, and entrys. I am trying to use tkSimpleDialog.Dialog to create a modal display of this widget, but am running into some (addressing) problems. My widget displays in the parent widget, not the tkSimpleDialog.Dialog?

Re: problem extending tkSimpleDialog.Dialog

2005-08-12 Thread William Gill
rface it looks like I'm not passing the correct master reference to my frame. Bill William Gill wrote: > I have created a widget that extends Frame() and contains labels, > checkboxes, and entrys. I am trying to use tkSimpleDialog.Dialog to > create a modal display of this widget,

Re: UCALC equivalent

2005-08-12 Thread William Park
on, like --> func () { rpn $1 dup 5 + x 10 - = } func 1 func 5 Sum(x^2+5, 1, 10). I assume this is sum of x^2+5, for x=1,2,...,10 --> rpn clear for i in {1..10}; do rpn $i x^2 5 + +

Re: problem extending tkSimpleDialog.Dialog

2005-08-12 Thread William Gill
: class MyWidget(Frame): def __init__(self, master, columns,rows, trace_write=None): Frame.__init__(self,master) ... ... ... Bill P.S. I haven't been working on this since my last post. I had to quit to go see my oldest graduate. William Gill wrote: > I h

help with mysql cursor.execute()

2005-08-14 Thread William Gill
I have been trying to pass parameters as indicated in the api. when I use: sql= 'select * from %s where cusid = %s ' % name,recID) Cursor.execute(sql) it works fine, but when I try : sql= 'select * from %s where cusid like %s ' Cursor.execute(sql,(name,recID)) or sql= 'select *

Re: help with mysql cursor.execute()

2005-08-14 Thread William Gill
rks. Between your comments re: column names and table names , and the notes in cursor.py, I was able to figure it out. FYI I wanted to create a tableHandler class that could be extended for individual tables. That's why the query needs to accept variables for tablename. Thanks. Bill S

Re: help with mysql cursor.execute()

2005-08-15 Thread William Gill
Steve Holden wrote: > William Gill wrote: > >> I have been testing and it seems that: >> >> 1- Cursor.execute does not like '?' as a placeholder in sql >> > The particular format required by each DBI-compatible module should be > available as t

Re: help with mysql cursor.execute()

2005-08-16 Thread William Gill
Dennis Lee Bieber wrote: > On Sun, 14 Aug 2005 19:28:04 GMT, William Gill <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >>I have been trying to pass parameters as indicated in the api. >>when I use: >> >> sql= 's

Re: Zope, Python 2.4 pythonScripts import problem

2005-08-17 Thread William Heymann
On Tuesday 16 August 2005 07:09 am, [EMAIL PROTECTED] wrote: > I see that Python 2.4.x does not work with Zope-2-7-6 properly. When I > start zope I get warning that I should recompile my pythonScripts by > executing manage_addProduct/PythonScripts/recompile. I do it and get > list of scripts whoos

Re: tkinter text widget question

2005-08-21 Thread William Gill
rafi wrote: > William Gill wrote: > >> The tkinter text widget uses indexes to identify row:column offsets >> within the text, but it seems counter intuitive to have to convert row >> and column integers to a string like "0.1'. It's great that inde

tkinter text widget question

2005-08-21 Thread William Gill
The tkinter text widget uses indexes to identify row:column offsets within the text, but it seems counter intuitive to have to convert row and column integers to a string like "0.1'. It's great that index can take a string, but what about looping through rows and columns? Am I missing a way t

Re: split function

2005-08-22 Thread William Park
input for each line, so the out put should look > like > 0 2 3 4 > and so on > 1 2 4 > 2 3 > 3 4 Use Python's dictionary (also known as associative array or hash). Read documentation. -- William Park <[EMAIL PROTECTED]>, Toronto, Canada ThinFlash: Linux thin-client

a question about tkinter StringVars()

2005-08-24 Thread William Gill
Working with tkinter, I have a createWidgets() method in a class. Within createWidgets() I create several StringVars() and assign them to the textvariable option of several widgets. Effectively my code structure is: def createWidgets(self): ... var = StringVar() Entry(master,textvar

Re: a question about tkinter StringVars()

2005-08-24 Thread William Gill
Eric Brunel wrote: > On Wed, 24 Aug 2005 15:07:27 GMT, William Gill <[EMAIL PROTECTED]> wrote: > >> Working with tkinter, I have a createWidgets() method in a class. >> Within createWidgets() I create several StringVars() and >> assign them to the textvari

prevent callback during initialization

2005-08-25 Thread William Gill
I am creating several tkinter widgets. In my classes they each have a change() method that is a callback to various IntVar, and StringVar objects. Everything works fine, but don't really want to trigger the callback when I am initializing each widget/control variable. I can use a "flag" like se

Re: a question about tkinter StringVars()

2005-08-25 Thread William Gill
Eric Brunel wrote: > On Wed, 24 Aug 2005 15:07:27 GMT, William Gill <[EMAIL PROTECTED]> wrote: > >> Working with tkinter, I have a createWidgets() method in a class. >> Within createWidgets() I create several StringVars() and >> assign them to the textvari

Re: formal math ?

2005-08-28 Thread William Park
ther from a library or function imported from module. For simple cases, I use RPN calculator recently added to Bash shell, like rpn 'f(x)= 1 +' 0 1 secant = rpn 'f(x)= 1 +' 'fd(x)= 1' 0 newton = -- William Park <[EMAIL PROTECTED]>, Toronto, Can

  1   2   3   4   5   6   >