I would like to use a dictionary to store byte table information to
decode some binary data. The actual number of entries won't be that
large, at most 10. That leaves the other 65525 entries as 'reserved'
or 'other' but still need to be somehow accounted for when
referenced.
So there are a couple
On Mar 17, 6:39 am, Kay Schluehr kay.schlu...@gmx.net wrote:
On 16 Mrz., 23:06, Mudcat mnati...@gmail.com wrote:
On Mar 13, 8:37 pm, Christian Heimes li...@cheimes.de wrote:
Chris Rebert wrote:
Haven't used it, butPythonfor .NET sounds like it might be what you
want:http
On Mar 13, 8:37 pm, Christian Heimes li...@cheimes.de wrote:
Chris Rebert wrote:
Haven't used it, butPythonfor .NET sounds like it might be what you
want:http://pythonnet.sourceforge.net/
I've done some development for and with PythonDotNET. It's definitely
the right thing. It works with
All the topics I seem to find on this topic lead me in the direction
of IronPython, but I'm not interested right now in a reimplementation
of Python in .Net environment. There are wrappers and methods
available for integrating with Java, C, and a bevy of other
languages.
I don't know much about
This is something I've wondered about for a while. I know that
theoretically Python is supposed to auto-recognize duplicate imports;
however I've run into problems in the past if I didn't arrange the
imports in a certain way across multiple files. As a result, I worry
about conflicts that arise
I think you've probably had issues with circular imports (i.e. mutual
dependencies), unless you can precisely remember what you were doing and
what went wrong.
That's possible, but circular imports become more of a hazard if you
have to import in several locations. Unify that to one file, and
On Jan 21, 11:29 am, alex23 wuwe...@gmail.com wrote:
Well, you can always stick those imports into a 'common.py' and do
'from common import *' in each file that uses them. But doing so can
be a pain to maintain and debug for anything more than the most simple
of applications. Being able to
On Dec 12, 6:17 pm, David Boddie da...@boddie.org.uk wrote:
That's correct, retrieveData() is a protected function in C++ and the
QMimeData object was created by the framework, not you, in this case.
Ah, well that explains it. Figured as much but was hoping maybe I was
trying to access it
I'm trying to drag/drop info from a TreeWidget into a TextBox. I have
been able to modify the TextEdit box to override the dragEnterEvent
like this:
class TextEdit(QtGui.QTextEdit):
def __init__(self, title, parent):
QtGui.QTextEdit.__init__(self, title, parent)
I'm not sure why my tkinter would not be compiled against 8.5 since I
have the latest version. I assumed that Python 2.6 would have it
without requiring me to do an extra compile.
However I was able to get it working using the code you gave me.
Thanks for that. The only problem is that it seems
textBoxResize(self, event):
widget = event.widget
dispLines = widget.count(1.0, end, displaylines)
widget.config(height=dispLines)
Thanks for the help!
On Oct 30, 9:19 am, Guilherme Polo [EMAIL PROTECTED] wrote:
On 10/30/08, Mudcat [EMAIL PROTECTED] wrote:
I'm not sure
Sounds like that would work really well. Problem is I can't get it to
work.
...
AttributeError: Text instance has no attribute 'count'
...
I think my usage is correct. I don't have any params at the moment,
but I was just checking the functionality.
numlines = widget.count()
According to the
I've tried quite a few things to get this correct but have hit a
couple of sticking points that I can't figure out. I need to ge the
Text box to function like the 'wraplength' option in a Label.
I've been able to adjust the height of the text by calculating the
number of lines needed to display
What would the behaviour of such a system be? In other words, what is
a test case management system in terms of the things that it does?
The feature set for one tends to vary. In short it's a front end app
which is tied to a db that stores and organizes test cases. The system
will allow you to
I had originally planned on writing my own software for managing test
cases; however new boss = new directive. This will make it more
difficult to get the functionality I need for test cases that are
automated and executed using python. I've searched for alternatives
but so far haven't come up
In short what I'm trying to do is read a document using an xml parser
and then upload that data back into a database. I've got the code more
or less completed using xml.etree.ElementTree for the parser and dbi/
odbc for my db connection.
To fix problems with unicode I built a work-around by
Thanks for all the input! I was able to install 2.6 with the wrapper
file and get up and running quickly.
I like this. I can pass the style object to a separate stylesheet file
where I can create all the definitions. That cleans up a lot of
clutter around the gui widgets. In the past there just
So I haven't programmed much in Python the past couple of years and
have been catching up the last few days by reading the boards. I'll be
making commercial Python applications again and wanted to see what's
new in the Gui department.
I started using Tkinter several years ago and have a lot of
Hi,
I was trying to do a simple web scraping tool, but the network they
use at work does some type of internal authentication before it lets
the request out of the network. As a result I'm getting the '401 -
Authentication Error' from the application.
I know when I use a web browser or other
What kind of tool do you want? Getting quotes is the easy part:
import urllib
symbols = 'ibm jpm msft nok'.split()
quotes = urllib.urlopen( 'http://finance.yahoo.com/d/quotes.csv?s='+
'+'.join(symbols) + 'f=l1e=.csv').read().split()
print dict(zip(symbols, quotes))
The hard
On Mar 5, 7:55 am, Beliavsky [EMAIL PROTECTED] wrote:
Yes, and a discussion of investment approaches would be off-topic.
Unfortunately, newsgroups such as misc.invest.stocks are dominated by
spam -- the moderated newsgroup misc.invest.financial-plan is better.
Some research says that mean
I have done a bit of searching and can't seem to find a stock market
tool written in Python that is active. Anybody know of any? I'm trying
not to re-create the wheel here.
--
http://mail.python.org/mailman/listinfo/python-list
I am not that familiar with Crystal Reports, but having read some other
posts I know that the way to integrate the API with Python is through
the COM interface provide by win32all.
However, I have been unable to find any other information on how to get
started. I've used the COM interface before
Wojciech Mula wrote:
Mudcat wrote:
[...]
You have to set cursor once, Tk change it automatically:
def buildFrame(self):
self.f = Frame(self.master, height=32, width=32, relief=RIDGE,
borderwidth=2)
self.f.place(relx=.5,rely=.5)
#self.f.bind
I was trying to design a widget that I could drag and drop anywhere in
a frame and then resize by pulling at the edges with the mouse. I have
fiddled with several different approaches and came across this behavior
when using the combination of place() and configure(cursor = ...) This
problem
Fredrik Lundh wrote:
look for pack_propagate on this page for one way to do it:
http://effbot.org/tkinterbook/button.htm
/F
Thanks!
I had actually seen this, but on the pythonware site where it looks
like this:
f = Frame(master, height=32, width=32)
f.pack_propagate(0) # don't
I am trying to change the width of a widget based on pixel size and not
on characters. I can't figure out how to do this.
Normally to change to the size of a widget it looks like:
widget.configure(width = x)
However that is in characters, not in pixels. To retrieve the actual
size of a widget,
Paul Rubin wrote:
No that would suck. Best to try to stay as close as possible to the
native widgets on whatever the underlying platform is. If you want
to depart from the native UI, then start from scratch and write a whole
new window system with a complete app suite etc.
Ok. But other
Dennis Lee Bieber wrote:
IOWs, eyecandy with no functionality... Sounds like the same mindset
that creates entire web sites using Flash animations such that one /can
not/ access them using a simple fast-loading text modes.
Not exactly. Look...when you're using freeware to compete with
I have been using Tkinter for several years now. Recently I have been
thinking about switching to something else that may have a sharper
appearance. However I'm not sure what that may be, and if that
something else is *that* much better than what I'm already using.
Does everyone agree that
is/is not possible. But I know that many applications draw their
own windows, skins, and functionality widgets to provide a sharper
appearance. It seems like it would be possible for someone to draw
these widgets and provide an api to display them through Python.
timmy wrote:
Mudcat wrote:
I
That was it. Once I added the other DLLs then it was able to find and
make the call.
Thanks for all the help,
Marc
Bruno Desthuilliers wrote:
Mudcat a écrit :
Hi,
I can't figure out why ctypes won't load the DLL I need to use. I've
tried everything I can find (and the ctypes website
Hi,
I can't figure out why ctypes won't load the DLL I need to use. I've
tried everything I can find (and the ctypes website is down at the
moment). Here's what I've seen so far.
I've added the file arapi51.dll to the system32 directory. However
when I tried to access it I see this:
print
In doing a little research I ran across PyTables, which according to
the documentation does this: PyTables is a hierarchical database
package designed to efficiently manage very large amounts of data. It
also deals with compression and various other handy things. Zope also
seems to be designed to
Hi,
I am trying to build a tool that analyzes stock data. Therefore I am
going to download and store quite a vast amount of it. Just for a
general number - assuming there are about 7000 listed stocks on the two
major markets plus some extras, 255 tradying days a year for 20 years,
that is about
On a different tack, to avoid thinking about any db issues, consider
subscribing
to TC2000 (tc2000.com)... they already have all that data,
in a database which takes about 900Mb when fully installed.
That is an interesting option also. I had actually looked for ready
made databases and didn't
Out of curiosity, are you also Texas Longhorn JCDenton in another
online life?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have looked through the previous suggestions on graphing modules and
have been able to find some good suggestions. However I was wondering
about something more specific. I am going to write a program that
tracks stock prices and other financial related charts, so I need to
use the classic
I have a directory structure that contains different modules that run
depending on what the user selects. They are identical in name and
structure, but what varies is the content of the functions. They will
only need to be run once per execution.
Example (directory level):
Sys1:
A
B
Anyone?
Is there any way to do this or am must I load all modules by function
name only if it's after initialization?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I don't know very much at all about SNMP, but I have an application
where I need to use it. I won't be doing too much with it, just simple
queries for metric values and capturing traps.
I've searched on the net for information but haven't found anything
that recent as to what is the best
I just figured this out myself, but probably not the way you're asking.
There are supposed to be ways to change the tab order using
tk_focusNext() and tk_focusPrevious(), but I've never used it.
What I've done is simply point one widget to the next one, basically
creating a linked list of tabs. I
I'm not positive about this, but when using com you need to force it
into the compile. In my applications where I use Excel I use this line:
python setup.py py2exe --progid Excel.Application
You may need to do something similar for the db application.
--
bump
Anyone? I don't need code. Just widgets and a compass for the right
direction.
--
http://mail.python.org/mailman/listinfo/python-list
Howdy,
I'm trying to create a selection helper, just like in Google or other
places where a drop-down menu appears below the text selection box when
you enter some text. As you type, the choices are narrowed based on the
characters entered.
I have everything worked out but the actual menu which
I will answer my own question in case anyone else ever has this
problem.
I knew the problem (although some say it's not) existed with the
namespace of pictures, that if you didn't save the pictures in
persistent memory they would disappear as soon as the function that
called them was exited. So a
Yeah, yall are right. I did the same thing and found it pulling
different versions depending on which system I was on.
However I was confused because I tried to use an older version of
python win with Excel 2003 a couple of years ago, and it wouldn't work.
Somehow it couldn't handle OL 11.0. So I
I have an image that displays on a canvas that works unless I put the
same code in a class. I can't figure that out. Here's what works:
def uts5100(self):
self.screen = Toplevel( self.master )
self.screen.geometry(+100+50)
self.screen.grab_set()
Howdy,
I could have sworn I downloaded a version of python win that supported
object library 11.0 at some point. However I just downloaded versions
204 and 203, and the highest version they have is OL 9.0.
Does anyone know if this is a mistake or if Excel 2003 isn't yet
supported with the
Hi,
I'm wondering the best way to do the following.
I would like to use a map webpage (like yahoo maps) to find the
distance between two places that are pulled in from a text file. I want
to accomplish this without displaying the browser.
I am looking at several options right now, including
Howdy,
I have a simple combox that I have commands entered into which looks
like this:
This is a list with the commands to be run in rotisserie
fasion.
self.comList = Pmw.ComboBox(self.boxFrame, labelpos=W,
label_text='Command List: ', entry_width=20,
selectioncommand=self.temp )
51 matches
Mail list logo