First
|
Prev |
Next
|
Last
Pages: 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
Advice requested on class design Alan Ristow wrote: I would like to have three classes, ClassA, ClassB, and ClassC, that are essentially the same, the only difference being that each class has a different range of valid values for its properties. Thus, the obvious solution is to create a base class, then subclass from that and inclu... 28 Apr 2010 10:34
wxPython problem: Can't assign size of plot.PlotCanvas I wrought something like client = plot.PlotCanvas(childFrame2, 2,pos=(300,400),size=(100,200), name=text1) But the plotcanvas kept filling all the childFrame. Is there a way to Really adjust the size of ploscanvas? Thanks in advance for your help. The problematic code is below: class FrameWithAButton(wx.Fram... 28 Apr 2010 12:51
replacing words in HTML file hi, Any idea how I can replace words in a html file? Meaning only the content will get replace while the html tags, javascript, & css are remain untouch. THanks, James ... 30 Apr 2010 06:11
Need help in python plug-in development Hi, I am new to python. I am using python 2.6. I have gone through the basic python and now I am trying to develop some plugin for maya 2009 through python. So, for that I would need helping hand. ... 28 Apr 2010 07:13
winreg - access mask Hello, if i want to read, write a key and set a value, does i only need to set KEY_WRITE, or does i need to set KEY_READ, KEY_WRITE and KEY_SET_VALUE? This questions is related to the OpenKey Function. http://docs.python.org/py3k/library/winreg.html <- The other Access modes are missing in the Documentat... 1 May 2010 01:09
Remembering the context Hi All, I am looking at the following code: def fn(): def inner(x): return tbl[x] tbl={1:'A', 2:'B'} f1 = inner # I want to make a frozen copy of the values of tbl in f1 tbl={1:'C', 2:'D'} f2 = inner return (f1,f2) f1,f2 = fn() f1(1) # output C f2(1) # output C ... 29 Apr 2010 05:40
os x compile, install? Hi, Python on my system is behaving badly, so I want to create a new install from source code. I have OS X 10.6.2, I downloaded the source code (Python-2.6.5.tar.bz2) and did the usual, ./configure, make, sudo make install. Build went fine. But on install, why is it putting things is my home directory? [..... 28 Apr 2010 11:42
assigning multi-line strings to variables Hi, This is undoubtedly a newbie question. How doI assign variables multiline strings? If I try this i get what's cited below. Thanks. d="ddddd ddddd" d Traceback (most recent call last): File "<interactive input>", line 1, in <module> NameError: name 'd' is not defined ... 2 May 2010 15:20
Ignoring XML Namespaces with cElementTree Is there any way to configure cElementTree to ignore the XML root namespace? Default cElementTree (Python 2.6.4) appears to add the XML root namespace URI to _every_ single tag. I know that I can strip URIs manually, from every tag, but it is a rather idiotic thing to do (performance wise). ... 2 May 2010 00:10
PyCon Australia CFP: One Day Left! The Call For Proposals for PyCon Australia 2010 FINISHES TOMORROW! Presentation subjects may range from reports on open source, academic and commercial projects to tutorials and case studies. As long as a presentation is interesting and potentially useful to the Python community, it will be considered for inclusi... 27 Apr 2010 21:18 |