I have defined two classes with one common field (called code) and
several different fields.
In class A there is only one instance of any given code as all items
are individual.
In class B, there may be none, one or many instances of each code, as
there can be any number of Bs referring to a sing
I am doing a string.replace in a simple table generation app I wrote,
and I can't figure out how to match whitespace with /s, so I thought
I would see if osmeone where would be kind enough to tell me what I am
getting wrong.
This works:
string = string.replace('\n Field One
\n %Field
I have an apache 1.3.29 server that is running my website. I have
written a bunch of scripts to generate the pages from csv files which
work great.
My next thing to learn is how to get user authentication functioning
the way I need it.
I understand the steps required to make .htpaccess files wor
Hi.
I have a gui with one frame and 5 panels. The second panel will only
be required in some cases, so I am wondering if there is some way I
can only create this panel in the circumstances where it is required,
confirmed by a simple len(list) > 1
If it is possible, I am wondering how I might go
Hi.
I am creating a small gui using wxGlade and wxPython. I am using a
radio button, and the text next to the options needs to be over two
lines. I tried using a \n character, but it seems to get ignored.
Looking around in the various wikis and the example code also didn't
turn up anything.
Thanks to all those who responded. It has all helped immensely. :-)
I didn't know about list comprehensions before I started.
very warm regards to all.
--
http://mail.python.org/mailman/listinfo/python-list
This is python 2.4.3 on WinXP under PythonWin.
I have a config file with many blank lines and many other lines that I
don't need.
read the file in, splitlines to make a list, then run a loop that
looks like this:
config_file = open("lines.txt", "rb")
returned_lines = config_file.read().splitl
are ticked. My attempts to add the button have
been wrong so far, as you'll see with my code.
The first code block is my panel only app. The second is how it looks
after I defined the Frame first and then moved the Cancel button.
TIA
Nuffnough
--
import wx, sys, os
class Form1(wx.