473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Why does this not work?

(I don't know how to make the title more specific in a useful way,
sorry.)

http://www.geocities.com/fusionary_2000/PingGUI.zip

Requires wxPython.

The part that fails is the function OnGridLabelLeftClick in PingGUI.py.
It just doesn't do anything. It's supposed to sort the grid by values
in the column that was clicked.

Why?

Jul 18 '05 #1
8 1756
Gensek wrote:
(I don't know how to make the title more specific in a useful way,
sorry.)
Here's a hint: take a moment to look over your post
just before you send it, and pick at least one of
the specific details therein.

In this case, "problem with PingGUI" would have been
most helpful in (a) letting those of us who know nothing
about it skip over your message, and (b) letting those
of us who know nothing about it read your message to
learn something about a package that's new to us, if
we felt so inclined.

"problem with OnGridLabelLeftClick in PingGUI" would have
been even better...
http://www.geocities.com/fusionary_2000/PingGUI.zip

Requires wxPython.

The part that fails is the function OnGridLabelLeftClick in PingGUI.py.
It just doesn't do anything. It's supposed to sort the grid by values
in the column that was clicked.

Jul 18 '05 #2
PingGUI is a program that nobody but me knows anything about. If I
wanted help from people who are experts on it, I'd get nothing at all.

Jul 18 '05 #3
Gensek wrote:
PingGUI is a program that nobody but me knows anything about. If I
wanted help from people who are experts on it, I'd get nothing at all.


It appears as if that's the situation anyway, at least so far. But you
want wxPython help so you should ask for that instead. Something like
"Why doesn't this function re-sort my wxPython grid?"

Also, very few people are going to go to the trouble of downloading your
zip. I know I'm not. You need to post the smallest possible snippet of
code that you are having trouble with.

I would respectfully suggest you read this excellent document. The
suggestions will help you get help:

http://www.catb.org/~esr/faqs/smart-questions.html

Then come back and post something with a sensible subject and you will
probably get some more direct help.
--
Michael Hoffman
Jul 18 '05 #4
Thanks, guys, it works now. I couldn't have done it without your
generous help.

Jul 18 '05 #5
D H
Gensek wrote:
Thanks, guys, it works now. I couldn't have done it without your
generous help.


Ask on the wxpython or python-tutor list instead of this one. You'll
get better help than there as you've already found out.
The only thing I'd agree with is what Michael Hoffman said about posting
a snippet of your code instead of a zip file.
Jul 18 '05 #6
I fixed it already, as I said. The problem had nothing to do with
wxPython. I just used my own functions in the wrong way.

Jul 18 '05 #7
Gensek wrote:
Thanks, guys, it works now. I couldn't have done it without your
generous help.


You're welcome! Any time.
--
Michael Hoffman
Jul 18 '05 #8
D H wrote:
Ask on the wxpython or python-tutor list instead of this one. You'll
get better help than there as you've already found out.
Not likely. IMHO he got the best help he could possibly
have gotten, but clearly that's debatable. :-)
The only thing I'd agree with is what Michael Hoffman said about posting
a snippet of your code instead of a zip file.


This is also debatable. I'd strongly recommend against
ever referencing a zip file in some other location when
posting requests for help, unless it's a very complex
situation and you have laid the groundwork for people
to be bothered going to all that effort. Even then,
there's at least one serious disadvantage... see below.

The benefits of posting a snippet are many, provided
we define an appropriate snippet to be "the smallest
piece of code that you can produce which reproduces
the problem and has the fewest external dependencies"
or some such:

1. The act of creating the above almost always leads
to the discovery of the problem and a solution, meaning
you don't even get to the posting stage.

2. Posting a snippet vastly increases the likelihood
someone (often many) will help, versus the chances when
you post a link to code elsewhere (which are near zero).

3. Posting a snippet means that the code is archived
along with the request, allowing people who follow
along later, perhaps with the same question, to reliably
find the code in question, and the fixed code in the
followups. Posting links to elsewhere makes it very
likely the code in question will have vanished, wasting
lots of time for those who come later.

4. It's just plain polite, good netiquette.

Caveat: posting monster programs is never a good idea,
and a good rule of thumb is probably that any snippet
posted (for any reason) in a mailing list or newsgroup
like this should be no more than about fifty lines
long. That should be enough to reproduce just about
any problem, if you aren't lazy...

-Peter
Jul 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jonas | last post by:
This works fine in Win XP but does not work at all in Win 98. Private WithEvents objIExplorer As InternetExplorer I have to do it like this to get it to work in Win 98 Dim objIExplorer As...
3
by: Julian | last post by:
Hi I am trying to update a date field in my table but some how this simple code does not work, I know the select work because if I write the fields, it will show the data from the table but why...
5
by: me | last post by:
I have a Class Library that contains a Form and several helper classes. A thread gets created that performs processing of data behind the scenes and the Form never gets displayed (it is for debug...
22
by: Robert Bralic | last post by:
CAN anybody tell me any address where I can download some small(1000-2000) lines C++ proghram source. Or send me ,a small(1000-2000) lines C++ program source that I can compille with gpp under...
12
by: Frank Hauptlorenz | last post by:
Hello Out there! I have a DB2 V7.2 Database (Fix11) on Win 2000 Professional. It was before a NT 4 based Domain - now it is a Win 2000 Domain. The database server is a domain member. Now...
0
by: Jarod_24 | last post by:
How does tabindex work in ASP .net pages I dosen't seem to work quite like in regular forms. and there isn't any TabStop property either. 1 .How do you prevent a control form beign "tabbed"....
14
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it...
89
by: Cuthbert | last post by:
After compiling the source code with gcc v.4.1.1, I got a warning message: "/tmp/ccixzSIL.o: In function 'main';ex.c: (.text+0x9a): warning: the 'gets' function is dangerous and should not be...
14
by: webEater | last post by:
I have a problem, it's not browser specific, and I don't get a solution. I have an (X)HTML document, I show you a part of it: .... <!--<div class="pad">--> <div id="eventImages"><img src=""...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.