Re: When should I use "parent=None" in __ini__ and "parent" in super()

2022-09-01 Thread Randy Johnson
Those are contradictory for what you are trying to accomplish unless it is a Parent - Child relationship (MainWindow - Window): When you super() an object, it enherits all the properties from its parent object. Source: https://www.w3schools.com/python/python_inheritance.asp If what you want

software installation problems

2021-08-30 Thread randy darwin lozanovalle
Good morning, when I run the Python program after installing the latest version, I get this message (attached file), I have already reinstalled the program several times and the same message keeps appearing; What solution could you give me, thank you! -- https://mail.python.org/mailman/listinfo/py

Re: [Newbie] Tkinter Question

2016-02-25 Thread Randy Day
In article , best_...@yahoo.com says... [snip] > Anyway, I am happy with the outcome even though I have > not found a way to detect when the program is force > killed. It is unlikely that would ever occur as long When your peogram starts, have it create a small file. As part of your graceful s

Re: 2.7.9: PhotoImage get/put

2015-10-21 Thread Randy Day
In article , tjre...@udel.edu says... [snip] > > I made my 'root' Tk instance global, and > > call root.update_idletasks() after the > > .put > I did not see the original post, but the alternative way to animate is > to use root.after(milliseconds, callback, *args) at the end of callbacks > t

Re: 2.7.9: PhotoImage get/put

2015-10-20 Thread Randy Day
In article , em...@fenx.com says... [snip] > I have no idea why, but here are some ideas I'd try out. > So is it refreshing upon completion of the loop, or upon exit from > process()? It turns out I need to call root.update_idletasks() for my root Tk object to get it to refresh after I put t

Re: 2.7.9: PhotoImage get/put

2015-10-20 Thread Randy Day
In article , illusiontechniq...@gmail.com says... [snip] > If you want to pass arguments to a command called when a button is > clicked, you have to use 'lambda' in tkinter. Thanks. I just skimmed over lambda before now... > You can't expect a delay to happen during the mainloop() of the > pr

2.7.9: PhotoImage get/put

2015-10-20 Thread Randy Day
I'm writing a simple image manipulation on a PhotoImage (tkinter), and running into an odd problem. The code below works, except for one thing: As the image is scanned, I'd like to observe the pixels getting inverted on the image (as a kind of progress bar). What happens is that the code run

GUI Tools for Python 3.1

2010-12-23 Thread Randy Given
Lots of stuff for 2.6 and 2.7 -- what GUI tools are there for 3.1? Randy -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 87, Issue 122

2010-12-20 Thread Randy Given
as On Dec 19, 2010 6:05 AM, wrote: > Send Python-list mailing list submissions to > python-list@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/python-list > or, via email, send a message with subject or body 'help' to > python-lis

Re: Python-list Digest, Vol 87, Issue 122

2010-12-20 Thread Randy Given
ZS On Dec 19, 2010 6:05 AM, wrote: > Send Python-list mailing list submissions to > python-list@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/python-list > or, via email, send a message with subject or body 'help' to > python-lis

Trying to set up dictionary to map to functions

2009-12-08 Thread Randy Belt
Hi, I have a small test program written trying to set up a dictionary that points keys to functions. It is working. However, in the process of creating it I noticed a weird problem. The problem is that this IS WORKING and I think it shouldn't be. ~ Here is the input config file code ~ its cal

search term parsing like Google/Gmail

2009-09-09 Thread Randy Syring
x27;t really care so much about the search syntax except that easy and intuitive is best for users. Does something like this exist? -- ------ Randy Syring Intelicom 502-644-4776 "Whether, then, you eat or drink or whatever you do, do all to the glory

Re: looking for a book on python

2009-06-27 Thread Randy Foiles
laplacia...@gmail.com wrote: On Jun 26, 8:48 pm, Randy Foiles wrote: Hello and thank you for taking your time to read this. I was interested in learning about python. In the long ago past I did learn some programing but I have not used any of it for years. I do remember some basics

Re: looking for a book on python

2009-06-27 Thread Randy Foiles
Aahz wrote: In article , Randy Foiles wrote: I do realize that everyone is different but I would like to see some suggestions and maybe reasons why you think it is good. I have looked for/searched and found a few different books but as my means are a bit limited right now I don't r

Re: looking for a book on python

2009-06-27 Thread Randy Foiles
OdarR wrote: On 27 juin, 02:48, Randy Foiles wrote: Hello and thank you for taking your time to read this. I was interested in learning about python. In the long ago past I did learn some programing but I have not used any of it for years. I do remember some basics however so the

looking for a book on python

2009-06-26 Thread Randy Foiles
ay I guess :) Thanks for your thoughts Randy theslayers9 gmail -- http://mail.python.org/mailman/listinfo/python-list

Re: __init__ vs. __del__

2009-03-21 Thread Randy Turner
only for simple object cleanup...at least based on what I've read so far. Someone mentioned a "context manager" earlier...I may see what this is about as well, since I'm new to the language. Thanks! Randy From: Albert Hopkins To: python

__init__ vs. __del__

2009-03-21 Thread Randy Turner
that allocates resources (memory, file opens, etc.), how do these resources get cleaned up when an object is destroyed? Custom method? At the moment, this architecture seems a bit asymmetric if the __del__ method is not called. Thanks, Randy -- http://mail.python.org/mailman

TkInter: Problem with propagation of resize events through geometry manager hierarchy?

2009-02-07 Thread Randy Smith
p would be appreciated. Thanks! -- Randy Smith -- Event list on startup with scroll bars: : width height root : 220 220 root : 1 1 iwidget : 220 220 root : 220 220 vscroll : 16 204 root : 16 204 hscroll : 204 16 root : 204 16 ilabel : 204 204 root : 204 204 vscroll : 15 205 ro

Re: Compiling Python 2.5.2 on AIX 5.2

2008-05-10 Thread Randy Galbraith
5.2/Lib/test/fork_wait.py", line 75, in test_wait self.wait_impl(cpid) File "Lib/test/test_wait4.py", line 28, in wait_impl self.assertEqual(spid, cpid) AssertionError: 0 != 8417358 --end results-- Thanks for taking your time to respond. It is truly appreciated at this end. Kind regards, -Randy Galbraith -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling Python 2.5.2 on AIX 5.2

2008-04-22 Thread Randy Galbraith
.2/Lib/test/fork_wait.py", line 75, in test_wait self.wait_impl(cpid) File "Python-2.5.2/Lib/test/test_wait4.py", line 28, in wait_impl self.assertEqual(spid, cpid) AssertionError: 0 != 6840386 What do these failures indicate? Not sure of course, but will research and report back

Re: Compiling Python 2.5.2 on AIX 5.2

2008-04-20 Thread Randy Galbraith
Thus it would seem use cif here resulted in a segment violation. I'll continue to research this issue and report back to the group as I know more. Perhaps solving the issue with the 'c' and 'm' libraries (whatever they might be) will make the core dump go away. However, for tonight, I'll need to stop here. Kind regards, -Randy Galbraith -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling Python 2.5.2 on AIX 5.2

2008-04-14 Thread Randy Galbraith
-DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c In file included from Include/Python.h:83, from ./Modules/python.c:3: Include/unicodeobject.h:73:2: error: #error Must define Py_UNICODE_SIZE What is Py_UNICODE_SIZE and why was it not defined? There are current questions I have

Compiling Python 2.5.2 on AIX 5.2

2008-04-13 Thread Randy . Galbraith
more suitable? (c) I am concerned about the two failing test cases: test_mmap and test_wait4. Are there good reasons why these failures can be safely ignored? (d) Should I be concerned with the skips of test_largefile and test_ctypes? Much thanks in advance. Kind regards, -Randy Galbraith

Translating Event.time from pyhook

2007-09-27 Thread randy . tucker7
I use pyhook to monitor user usage of keyboard and mouse. According to pyhook specs, event.time hold the number of seconds since the epoch. However, when I use the example source code I get numbers like 358054093, which translates to 07 May 1981.. Can anyone explain to me what am I doing wrong? T

RE: Maintaining leading zeros with the lstrip string function?

2007-07-23 Thread Randy Kreuziger
Thanks for the basename suggestion. That almost works. I'm running into a problem with some of the directory names when they include \800x\ see below. ―- import sys, os, string teststring = 'C:\shoreline\dvd\prep area

Maintaining leading zeros with the lstrip string function?

2007-07-23 Thread Randy Kreuziger
I need just the file name from a string containing the path to a file. The name of the file starts with zeros. This is problematic because the lstrip function strips them leaving this as the result: 6128.jpg How do I strip the path without losing the leading zeros in the file name? ―

Python 2.4 online certification - new items available for Beta testing

2006-10-12 Thread Randy Kraemer
There is a free Beta test of a Python 2.4 Certification test available at Brainbench.com. They are a provider of skills-based certification exams. Go to the link below to find the test. It is free to take the test. http://www.brainbench.com/xml/bb/common/testcenter/betatests.xml -- http://mail.p

Executing a DOS program from within Python

2006-03-16 Thread Randy Kreuziger
hanks Randy Kreuziger (360) 902-2495 Voice (360) 902-2940 Fax ArcSDE Administrator Wash Dept of Fish and Wildlife -- http://mail.python.org/mailman/listinfo/python-list

Redirecting both stdout and stderr to the same file

2005-12-27 Thread Randy Kreuziger
Can stdout and stderr be redirected to the same file?  I would like to redirect both to the same file but I'm not sure how to do it.  Currenting I'm redirectiong stdout using the following code:    saveout = sys.stdout   fsock = open('runtime.log', 'w')   sys.stdout = fsock   The problem is that

how best to split into singleton and sequence

2005-10-18 Thread Randy Bush
, in ? ValueError: too many values to unpack >>> so, i imagine what is happening is the lhs, t,l, is really (t, (l)), i.e. only two items. so how should i have done this readably and simply? randy -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSource documentation problems

2005-09-01 Thread Randy Bush
> I'm very sorry to say, that the Python doc is one of the worst possible > in the industry. you are entitled to a full refund -- http://mail.python.org/mailman/listinfo/python-list

Re: Arguement error

2005-08-31 Thread Randy Bush
> I am wondering why I am getting this error. when I try to run a script. > TypeError: translate() takes at most 3 arguments (10 given) > but the thing is the method translate actually accepts 10 arguements. without code, how is anyone to know? -- http://mail.python.org/mailman/listinfo/python

Re: trictionary?

2005-08-29 Thread Randy Bush
a breath of fresh air to be in a language and community which care about how code reads more than how clever it is. randy -- http://mail.python.org/mailman/listinfo/python-list

Re: trictionary?

2005-08-29 Thread Randy Bush
erfectly fine if the list doesn't > live longer than about one screen of code. i can definitely see that. in last weeks installment, i buried a complex trinary tree in a class. thanks for the advice! randy -- http://mail.python.org/mailman/listinfo/python-list

Re: trictionary?

2005-08-28 Thread Randy Bush
+ ",," + str(k) elif k == 0: print str(i) + "," + str(j) else: print str(i) + "," + str(j) + "," + str(k) which is still pretty darned grotty and unexpressive. of course, i could be a bit more obscure and do if week

trictionary?

2005-08-28 Thread Randy Bush
, y, z should the dict value become a two element list, or is there a cleaner way to do this? randy -- http://mail.python.org/mailman/listinfo/python-list

Re: list insertion

2005-08-27 Thread Randy Bush
e, i thought i would ask. > I think you're fine. indeed. the bug was elsewhere. i got confused and tried to look-ahead too far when i could have just recursed. i threw away the too-clever code and replaced it with one line. i love it when that happens. randy -- http://mail.python.org/mailman/listinfo/python-list

Re: Experience regarding Python tutorials?

2005-08-27 Thread Randy Bush
> There is also a python tutor newsgroup at gmane > (gmane.comp.python.tutor). is there a mailing list to which it is gated? randy -- http://mail.python.org/mailman/listinfo/python-list

Re: need a little help with time

2005-08-27 Thread Randy Bush
i am doing disgusting looking junk based on calendar. example now = calendar.timegm(time.gmtime()) aWeek = 7*24*60*60 print time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(now + aWeek)) randy -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-26 Thread Randy Bush
about 0.25, this message being my contribution to the noise. the s here is pretty darn good. but the n is pretty silly. randy -- http://mail.python.org/mailman/listinfo/python-list

Re: list insertion

2005-08-24 Thread Randy Bush
>> hold = self.next >> self.next = DaClass(value) >> self.next.next = hold > shouldn't that last line be this? > self.next.prev = hold single threaded list > What did you expect, and what did you ovserve? i will try to distill a case randy --

list insertion

2005-08-23 Thread Randy Bush
would ask. mahalo, randy -- http://mail.python.org/mailman/listinfo/python-list

Re: loop in python

2005-08-23 Thread Randy Bush
computers are cheap. i am expensive. give me clear and maintainable code every time. randy -- http://mail.python.org/mailman/listinfo/python-list

Re: dict duplicity

2005-08-18 Thread Randy Bush
in .iteritems()" problem i did not work out what i was doing wrongly. but now it works. i hate ing magic! but thanks for making me permute. randy -- http://mail.python.org/mailman/listinfo/python-list

Re: dict duplicity

2005-08-18 Thread Randy Bush
-604503432 917088000 917088000 >> 917088000 917088000 >> 12.0.0.0 -2054516913 9 -1293912648 7018 329707286 hash= -1578430040 >> 917088000 917088000 917088000 917088000 >> 12.0.0.0 -2054516913 9 -1293912648 7018 329707286 hash= -1578430040 >> 917088000 917088000 9170880

dict duplicity

2005-08-18 Thread Randy Bush
are two entries with the same hash= i am utterly confused randy -- http://mail.python.org/mailman/listinfo/python-list

Re: What is Expresiveness in a Computer Language?

2005-07-10 Thread Randy Howard
_Y__) > /\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ > == Out of curiosity, does anyone remember who 'jgs' refers to above? -- Randy Howard (2reply remove FOOBAR) -- http://mail.python.org/mailman/listinfo/python-list

Please help me understand this code....

2005-06-17 Thread randy
enter center -= (center>>density) Thanks!! Randy -- http://mail.python.org/mailman/listinfo/python-list