4,901 Posted Topics
Re: How about some context? Perhaps you could post a full, but stripped down example that we could try to run. Based on what little you posted I really have no idea what you are doing or what you are doing it with. | |
Re: Same comment as your other related post. If I posted x = splunge.fnord(1,2,'abc') and asked why it doesn't work, your first comment would likely be, "I have no idea what splunge and fnord are". | |
Re: I'v e been running Windows 11 in a virtual machine for some weeks now. I haven't seen anything that would 1. Entice me to want to update 1. Discourage me from updating In other words, "meh". They changed the start menu. Again. At least this time it was not another … | |
Re: As stated earlier, `->` is indeed type hinting. For example, if you define a method that takes a string parameter and returns a boolean you can define it lie def myFunc(name): or def myFunc(name:str) -> bool: It is strictly for informational purposes. | |
**Requires:** 1. Python version 3.8 or newer 2. wxPython version 4.0 or newer 3. exif module 4. Windows with NTFS file system To ensure you have the required packages please run the following 1. python -m pip install --upgrade pip 2. pip install exif 3. pip install wxPython I have … | |
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). Short version: 1. Don't hijack threads. Start a new on with your question. 1. Don't resurrect old threads. 1. Show what you have done so far and where you are stuck. | |
Re: That depends on how complex the code is and where you are having problems. I suggest you start a new thread and see what happens. We tend to offer help rather than solutions. | |
We are getting a burst of posts all from IP 180.188.224.184 Wouldn't be a concern except they are all similar in content but from five different usernames (they come in pairs). Anything to be concerned about? If it was on the up-and-up, why use multiple accounts? Jason_54 How do I … | |
Re: I'm not familiar with graphics.py. It apparently does not come with python. I've been using mostly wxPython, but you might want to consider the turtle module that comes with python. It will likely be a lot more robust that graphics.py. | |
Re: Just realize that there is nothing to stop the user from entering a value that will throw an exception when you try to convert it to an integer. Either check that the string is an integer-equivalent, or put it in a `Try` block to trap the error. | |
Re: >There are a handful of old timers around here. I'm one. Welcome to Daniweb. | |
Re: So many possible highly sarcastic answers that my head may explode. The easiest answer is the number of fake followers is proportional to your political or financial advantage in having followers. Or, if your name is Trump, you can just lie about it. | |
Re: >Frankly I've written off MS-Access for decades. Fer sher. I'd recommend sqlite. | |
# Comparing two videos side by side I have been creating walk-through videos on the cheap by just wandering through an area with my little Sony camera. Lacking a steady-cam I just try to hold the camera as steady as possible. Fortunately, with the proper (free) tools I can still … | |
Re: >but I think Reverend Jim may be able to top that Nope. You actually have seniority by a year and change. I started pounding out BASIC in my first year Engineering then switched to Computer Science in 1971 when I saw the error of my ways. | |
Re: I don't use tkinter. It is sadly out of date. Instead I use wxPython, a python wrapper for the wxwidgets tool set (a cross platform library that renders controls using the native OS). If you are interested I suggest you have a look at [this article](https://www.daniweb.com/programming/tutorials/523626/creating-a-gui-wrapper-for-vlc-media-player-in-python-wxpython) that I posted some … | |
I have a SQLite database that for some insane reason stores dates as the number of days since 1899-12-31. I want to create a view that will display the date as an actual date. I can calculate a specific date from a specific day number as select date('1899-12-31','Localtime','+44386 day') as … | |
As if Jeff Bezos isn't already rich enough. As someone who is at high risk because of a compromised immune system, I thought it might be a good idea to get a few N95 masks. Because local medical supply stores are out of stock I checked Amazon. While the prices … | |
Re: I'm all in favour of higher quality, particularly higher quality posts. | |
Re: Where are you stuck and what language are you working in? Is the app command line based, or does it require a GUI? | |
Re: You are using things both as functions and variables. Compare the following with your code class Employee: def __init__ (self, name, basic, house): self.name = name self.basic = basic self.house = house self.nhif = (2/100)* self.basic self.tax = (30/100) * self.basic def gross_income (self): return self.basic + self.house def total_deductions … | |
Re: Start by googling "gaussian elimination". | |
Re: Sure thing. Here it is in APL for any rank of `arr` z ← Zeroes arr z ← +/0=,arr | |
Re: You start by reading a book or tutorial on programming. Google will help you find something. I suggest you start with Python. It's a good language to learn the fundamentals. | |
Re: Question: What is the third letter of the alphabet? Answer: c | |
Re: My guess is it's one of those pointless intro exercises, like "add two numbers using only bitwise operations" that some professors think will teach you something useful. The only thing it teaches is how to do something in the least efficient possible way. | |
Re: 1. What card game? 1. Why C++ 1. What don't you know? | |
Re: I'm not into gaming, and as for Quora, I have no idea what it is but I'm definitely going to have a look. Mostly I'm a techie junkie. Last summer I got started with python/wxpython and currently I am diving back into APL. It's changed a great deal since I … | |
Re: I did just that in [this project](https://www.daniweb.com/programming/software-development/code/523613/a-multiple-timer-application-in-python-wxpython#post2263711). If you have any questions please post them in that thread. The code is posted there. | |
Re: It's like giving some directions on how to get to a destination. The directions depend entirely on knowing the starting point. | |
Re: Meaningless collection of buzzwords. But if you want to have a discussion in English I'm up for it.  | |
Re: The effort you get is the effort you give. You haven't provided any context or even a question. | |
Re: If you are going to print out `y = a^x + b`, and you are going to prompt for `a`, `b`, etc, then you might as well use `a` and `b` as the variable names. If you are going to go to the trouble of creating an integer input function … | |
Re: And please look into parameterized queries. The way you are doing it leaves you open to SQL injection attacks. You might as well learn to do it the safe way now. Bad habits are hard to unlearn. Malpractice makes malperfect. | |
Re: Keep in mind that indentation in Python is critical to understanding the program flow. The way this code was posted (without indentation) renders it useless. | |
Re: I'll put in a plug here for [Unchecky](https://unchecky.com/). I put this on my Father-in-law's computer and it automatically unchecks any boxes for crapware that comes along with other installs. It's saved him from multiple Avast installs (among other things). | |
Re: How about something to back up that opinion? | |
Re: That's not pseudo code. For the record, neither is this Do my homework for me | |
Re: I'm not sure I follow. Can you please specify the exact output you want for the given input? Incidentally, an easier way to initialize that list is myarray = 'G o T , I t B , M N R , K F P , M F I H , … | |
Re: `input` always returns a string so the test is not necessary. In your case the result of `type(age) != int` will always be `True` so the first part if the `if` will always be executed. You can test `age` by converting to `int` and trapping the `ValueError` exception with a … | |
Re: Also, in lines 7 & 8, "combobox" should be "combobox1" | |
Re: Try removing the battery and powering it up on AC only. |
The End.