4,911 Posted Topics
Re: I tried to run this locally but I do not have the package `graphics` and `pip` couldn't find it either. So I found something that said `graphics.py` had to be in the same folder as your app. I found a copy of it on my computer and copied it over. … | |
While going through new posts this morning I noticed a change in behaviour. Yesterday, if I clicked on the sprocket to the right of a thread title I got a pop-up menu (mark as read, etc.). Today the menu pops up briefly before I get taken to the thread. There … | |
Re: Just a thought - have you ever considered googling "how to license a vehicle in Canada"? Near the top is a link to [this guide](https://blog.clutch.ca/posts/motor-vehicle-registration). If, instead, you are referring to getting a driver's licence, then you should have been clearer with your question. | |
Re: I find it useful to debug queries in an interactive DB session before writing the code. For MySql you can use [MySQL Workbench](https://www.mysql.com/products/workbench/). For sqlite you can use [sqlite Spy](https://www.yunqa.de/delphi/apps/sqlitespy/index). Run your query against a test version of your database. If it works then print the query your code is … | |
Re: It would help to see the code but that error usually happens when you try to use a variable that has not been assigned a value. For example, you will get the error if you do x = y + 5 but not if you do y = 9 x … | |
Re: On time Good tasting Nutritious | |
It used to be that google maps satellite images had pretty good resolution, at least over cities. I haven't checked in some time, but today I noticed that the resolution is barely equivalent to Donkey Kong when it first came out. When did it get so bad? | |
Re: ### Annotate your sources Provide links so the reader can check your sources for themselves to ensure you are properly representing the cited material. Are you providing the proper context for a quote? Are you selectively editing material to make it say something that it is not? ### Provide qualifications … | |
Re: Sometimes the LED will blink to tell you the computer is sleeping. If there is a serious hardware problem that keeps your computer from starting up the blink code could indicate what the problem is. You'll have to check your particular user guide to see. | |
Re: Check out [Rosetta Code](https://rosettacode.org/wiki/Sorting_algorithms/Bubble_sort#Java) | |
Re: I suppose that depends on several factors, the most significant being if the GOP will block any legislation that the Democrats try to implement to reduce inflation (and then complain about the do-nothing Democrats). Of course, the only reason I have to think that is **everything the Republicans have said … | |
Re: How about some explanation and comments to go along with the code? | |
Re:  | |
Re: Try [Rosetta Code](https://rosettacode.org/wiki/Random_number_generator_(included)#C++). | |
Re: To see if all entries in a list are unique you could do def unique(lst): d = [] for l in lst: if not l in d: d.append(l) return len(d) == len(l) This will check if all items are unique. If you want to see if all items are the … | |
Adding a file/folder comment capability to Windows This is something I wrote a few years ago in vb.Net and just recently ported to python/wxpython. As I keep discovering, just about everything is easier in python. Windows does not have a commenting facility so I decided to write something simple. NTFS … | |
After reading a few reviews I decided to try [Vivaldi](https://vivaldi.com/download/) out. After importing my bookmarks and customizing my bookmark bar (just a little drag and drop) I was ready to go. Without trying any formal timing tests, my purely subjective impression is that things load faster. I don't have the … | |
Re: Install the current 3.x version of python. That version of wxPython won't run under 2.x python. | |
Re: Copying and pasting your homework and expecting someone to do it for you is not going to earn you the education you need. Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). | |
Re: Same here - what comes with Windows 10. | |
Re: By now everyone should know that posting in ALL CAPS is the internet equivalent of shouting. Keep in mind that what may seem a crisis to you is not a crisis to us. We expect to see proof that you have put in some effort to solve the problem yourself. … | |
Re: That would depend on the data structures you are using to store your data and what other variables you are maintaining. For example, it is a common practice to have a `prev` variable to keep track of where you were on a previous step (or a stack for deeper history). … | |
Re: 10 years for me. Same comments as James but different languages. Never benn a java fan. | |
Re: Kewl. In Python that's a simple dict with key=sorted and val=list. | |
Re: Please show us what you have done so far. Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). | |
Re: Please show us what you have done so far. Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). | |
Re: >Program that creates a text editor struct Strictly speaking this isn't a program. | |
Re: That's what a debugger is for. Run it in the debugger, set a breakpoint at your last output statement, then single step, checking your pointer references, until you find the one that is invalid. Then you have to work backwards and find out why it is invalid. It could be … | |
Re: At one time I would have written this in vb.Net but now I'd use python/wxpython. It requires much less disk space for the development environment and is portable between Windows/Mac/Linux systems. | |
Re: I always start [here](https://www.daniweb.com/articles/latest?sort=latest) | |
Re: If you don't already know how to do this it's probably because: 1. You skipped class 2. You attended class but slept through it 3. You couldn't be bothered to read your notes or the textbook 4. You don't know how to use Google If any of the above are … | |
Re: Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). | |
| |
Re: Or if you are preparing the post in a text editor, select the entire block of code and indent it four spaces. | |
Re: Congratulations again, and welcome back. You were missed. | |
Re: Try select name, sum(payment) as subtotal, date from mytable group by name, date As far as I know you can't also get the grand total in the same query. SQL queries return sets with each row having the same columns. A grand total is a single value whereas the above … | |
This is yet another thing that everyone just accepts, but nobody can tell me why this decision was made. Everyone is familiar with the Windows screen coordinate system where x and y values increase to the right, for x, and down, for y. What is not noticible until you start … | |
| |
Re: Mass texting with a messaging app? Sounds a lot like spam to me. | |
Re: Looks clean and functional. Getting used to using the "h" word? | |
Re: If you should continue until you become a professional (employed) programmer you will find out the ugly truth about users. What they ask for is seldom what they want, or need. Sometimes it will be your (probably) unpleasant task to explain that to them. | |
## Introduction I recently bought a new laptop. Since I haven't used VB.Net in years (nothing but Python now) I did not install Visual Studio. That meant rewriting all my VB apps in Python/wxPython. One of my most often used apps was a shell extension I wrote to add a … | |
Re: Welcome to Daniweb. I see you used the Python tag. That's encouraging. | |
Re: There's always print to PDF from within the browser.. | |
What I've been doing is to click and drag to select code. Is there a hotkey that will select only the code? CTRL-A selects all text on the page. | |
Re: That's too bad. I've been there myself. | |
Re: You will likely not get anyone here to write your code for you. What we **will** do is look at the code you have already written, and if you can narrow down where you are having problems, make suggestions as to how to fix them. But first we have to … | |
Re: For the record, I would pronounce CCIX as two hundred and nine. | |
When I create a new topic and enter the mandatory tags, the tag dialog box sometimes overlays the "Continue to the Last Step" button leaving only the merest sliver of a button to click. Could the tag dialog be aligned left to avoid this? | |
Re: What have you done so far and where are you stuck? In the mean time, please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). |
The End.