Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Displaying database info in QTableWidget
Post: RE: Displaying database info in QTableWidget

Oh okay I get what you're saying. This is the 3rd time rewriting this app because I figured out a better way of doing something so it's possible I may end up doing it again. Curious. Would you say m...
thewolf GUI 6 617 Apr-03-2021, 02:49 PM
    Thread: Displaying database info in QTableWidget
Post: RE: Displaying database info in QTableWidget

They are windows? As of right now they are the only two windows I have in the app atm. You click the New Hardware button on the main window and it opens the newhardware window.
thewolf GUI 6 617 Apr-02-2021, 08:12 PM
    Thread: Displaying database info in QTableWidget
Post: RE: Displaying database info in QTableWidget

thanks Deanhystad. I actually rearranged some of the code and got it working. In case anyone is interested in the code see below. The only thing I have left to do is figure out the best way for a user...
thewolf GUI 6 617 Apr-01-2021, 12:54 AM
    Thread: Displaying database info in QTableWidget
Post: Displaying database info in QTableWidget

I was trying to keep my code somewhat organized and I ran into a slight problem and I'm hoping I won't have to restructure it too much. I have two files. MainWindow and ModuleWindows. Looking at the ...
thewolf GUI 6 617 Mar-27-2021, 01:38 AM
    Thread: Simple printing the text for a QLineEdit
Post: RE: Simple printing the text for a QLineEdit

Thanks for the help deanhystad. I created another function to clear the data out of the text boxes and I think I understand that how that is working now. At this point the issue is the sql statement ...
thewolf GUI 16 1,131 Mar-06-2021, 08:00 PM
    Thread: Simple printing the text for a QLineEdit
Post: RE: Simple printing the text for a QLineEdit

Thanks for the detailed explanation deanhystad. Truth is I have read and viewed videos on classes and subclasses but I was under the impression a subclass not only inherited methods but also all objec...
thewolf GUI 16 1,131 Mar-06-2021, 02:06 PM
    Thread: Simple printing the text for a QLineEdit
Post: RE: Simple printing the text for a QLineEdit

I understand what you're saying but at the same time confused. I thought if a class or function inherited another class then the child class can access any of the objects within the parent class? I th...
thewolf GUI 16 1,131 Mar-06-2021, 01:54 AM
    Thread: Using python to execute app or cmd that requires admin credentials
Post: Using python to execute app or cmd that requires a...

Hey everyone I want to make a small python app that a user can run and it would run the windows 10 network reset function and automatically enter the local admin credentials in the UAC prompt for them...
thewolf General Coding Help 0 301 Mar-05-2021, 08:15 PM
    Thread: Simple printing the text for a QLineEdit
Post: RE: Simple printing the text for a QLineEdit

Okay I have played around with it enough now the SQL statement is actually entering rows of blank data in the database and not freezing up and closing so it's connecting/executing the statement. Even ...
thewolf GUI 16 1,131 Mar-04-2021, 02:11 AM
    Thread: Simple printing the text for a QLineEdit
Post: RE: Simple printing the text for a QLineEdit

I think the issue is my SQL statement. I went back and made the enterNewHardware function into a class and inherited the hardwareTab class. I feel this has been the closest way so far because I have a...
thewolf GUI 16 1,131 Mar-04-2021, 01:17 AM
    Thread: Simple printing the text for a QLineEdit
Post: RE: Simple printing the text for a QLineEdit

Unfortunately neither way works. Tried the lambda function and added the hardwareTab class as an argument in the enterNewHardware function but still unable to reference the textbox variables in the SQ...
thewolf GUI 16 1,131 Mar-04-2021, 12:05 AM
    Thread: Simple printing the text for a QLineEdit
Post: RE: Simple printing the text for a QLineEdit

Going to try both options tonight. What do you mean by "glue" function?
thewolf GUI 16 1,131 Mar-03-2021, 04:45 PM
    Thread: Simple printing the text for a QLineEdit
Post: RE: Simple printing the text for a QLineEdit

Turned enterNewHardware into a class and inherited the hardwareTab class. Able to assign the textboxes to variables but unable to reference them in the sql statement now. Program runs but when you cli...
thewolf GUI 16 1,131 Mar-03-2021, 01:26 AM
    Thread: Simple printing the text for a QLineEdit
Post: RE: Simple printing the text for a QLineEdit

So here is my all the code. Pretty much setup testing calling a function via button click and testing db connection which works. The code is working but of course the button is just inserting hard-cod...
thewolf GUI 16 1,131 Mar-02-2021, 11:54 PM
    Thread: Simple printing the text for a QLineEdit
Post: Simple printing the text for a QLineEdit

I'm simply trying to print whatever the user has typed in the QLineEdit named self.snTextBox using the QPushButton called self.cfButton. I tried using str for both but it makes no difference. What do ...
thewolf GUI 16 1,131 Mar-02-2021, 01:41 AM
    Thread: pywinauto, anyone use it?
Post: pywinauto, anyone use it?

My company uses Ivanti Security Controls to patch our machines. Right now there is no way to start and stop a patch task instantly from the console/server itself. The client machines have an agent tha...
thewolf General Coding Help 1 455 Mar-01-2021, 08:26 PM
    Thread: Python Desktop Application that will connect o Azure SQL Database
Post: RE: Python Desktop Application that will connect o...

Hey guys like I said I'm working on a very simple inventory management app for keeping up with hardware and software at work. I have two py files in my project currently. mainWindow.py and dbConnecti...
thewolf Web Scraping & Web Development 7 874 Feb-26-2021, 01:33 AM
    Thread: Python Desktop Application that will connect o Azure SQL Database
Post: RE: Python Desktop Application that will connect o...

This is simply just inserting a new row of data in one of my tables. I'm thinking about leaving this(db connection) in it's own py file. My main gui file will call on it for the db connection and func...
thewolf Web Scraping & Web Development 7 874 Feb-24-2021, 03:18 AM
    Thread: Python Desktop Application that will connect o Azure SQL Database
Post: RE: Python Desktop Application that will connect o...

Ignore my last question. Think I have it under control now. Thanks Larz
thewolf Web Scraping & Web Development 7 874 Feb-24-2021, 01:39 AM
    Thread: Python Desktop Application that will connect o Azure SQL Database
Post: RE: Python Desktop Application that will connect o...

I rewrote it. It's just easier for me read like this being new. I'm just going to assume Azure needs the connection string in that format for it to work. import pyodbc def databaseConnection(driver...
thewolf Web Scraping & Web Development 7 874 Feb-23-2021, 11:51 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020