Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: PyQt, Open a Table when a row is selected populating it with the row values
Post: RE: PyQt, Open a Table when a row is selected popu...

[attachment=594] (Dec-19-2018, 06:23 PM)rarevesselt Wrote: (Dec-18-2018, 06:17 PM)Axel_Erfurt Wrote: You mean somethig like that? video Download Project Thank so much.I can see your code so worke...
rarevesselt GUI 18 15,314 Mar-30-2019, 12:57 AM
    Thread: PyQt, Open a Table when a row is selected populating it with the row values
Post: RE: PyQt, Open a Table when a row is selected popu...

(Dec-18-2018, 06:17 PM)Axel_Erfurt Wrote: You mean somethig like that? video Download Project Thank so much.I can see your code so worked well.Thanks for the help.I will update with the other feat...
rarevesselt GUI 18 15,314 Dec-19-2018, 06:23 PM
    Thread: PyQt, Open a Table when a row is selected populating it with the row values
Post: RE: PyQt, Open a Table when a row is selected popu...

No,I mean product_name_box will be a list of all products ,but when a pick a product like Maclean the product_id change to 1 and price to 200.Likewise for all other products.When I press value comboBo...
rarevesselt GUI 18 15,314 Dec-19-2018, 09:25 AM
    Thread: PyQt, Open a Table when a row is selected populating it with the row values
Post: RE: PyQt, Open a Table when a row is selected popu...

Yes,I intend to add price to my table later but as I have said I need help on how to add items to my comboBoxes from the database such that once, I change value in( Product_name) one comboBox other co...
rarevesselt GUI 18 15,314 Dec-18-2018, 01:01 PM
    Thread: Printing QTableWidget to an DIN A4 page
Post: RE: Printing QTableWidget to an DIN A4 page

for the color of the header your code is correct. I only change this line stylesheet = "::section{Background-color:rgb(190,1,1);border-radius:14px}" to stylesheet = "::section{Background-color:rgb(0, ...
rarevesselt GUI 2 7,250 Dec-18-2018, 11:22 AM
    Thread: PyQt, Open a Table when a row is selected populating it with the row values
Post: RE: PyQt, Open a Table when a row is selected popu...

(Dec-17-2018, 07:15 PM)Axel_Erfurt Wrote: Ok, it creates a database with no entries. If there are entries then you want to fill the ComboBoxes? Or the table? I have a DB Viewer on github that show...
rarevesselt GUI 18 15,314 Dec-18-2018, 08:37 AM
    Thread: PyQt, Open a Table when a row is selected populating it with the row values
Post: RE: PyQt, Open a Table when a row is selected popu...

(Dec-17-2018, 12:08 PM)Axel_Erfurt Wrote: You create the database yourself? There is no database file to which you connect. Yes, I have a file for that in user.py for the database. here is the file....
rarevesselt GUI 18 15,314 Dec-17-2018, 06:27 PM
    Thread: PyQt, Open a Table when a row is selected populating it with the row values
Post: RE: PyQt, Open a Table when a row is selected popu...

(Dec-16-2018, 07:03 PM)Axel_Erfurt Wrote: Do you use a database? Yes. This is my product.py import sqlalchemy #from whooshalchemy import IndexService from sqlalchemy import exists from sqlalchem...
rarevesselt GUI 18 15,314 Dec-16-2018, 11:29 PM
    Thread: PyQt, Open a Table when a row is selected populating it with the row values
Post: RE: PyQt, Open a Table when a row is selected popu...

These are comboBoxes items product_id,product_name,and Product_price 1 Maclean 200 2 Laptop 30000 4 Air Fresher 50 5 Bread 200 6 Three Crown 150 7 Peak Milk 280 10 Reachable Lamp 1000 11 Torch 800 ...
rarevesselt GUI 18 15,314 Dec-16-2018, 06:41 PM
    Thread: PyQt, Open a Table when a row is selected populating it with the row values
Post: RE: PyQt, Open a Table when a row is selected popu...

Thanks Axel_Erfurt.I am very new to PyQt.That is better than what I have got.You have really been helpful.I will update with code later. I want to create a decent application with little knowledge I h...
rarevesselt GUI 18 15,314 Dec-15-2018, 02:41 PM
    Thread: PyQt, Open a Table when a row is selected populating it with the row values
Post: RE: PyQt, Open a Table when a row is selected popu...

(Dec-14-2018, 07:29 PM)starglider Wrote: In PyQt5 you can use a SIGNAL in a row that opens a form with your table, or add a button to a cell in the row and open the sub-form with a table, or place a...
rarevesselt GUI 18 15,314 Dec-15-2018, 06:53 AM
    Thread: PyQt, Open a Table when a row is selected populating it with the row values
Post: PyQt, Open a Table when a row is selected populati...

I am trying to learn how to build a Simple POS system.I want to know if it possible to open a table when a Product is selected and additem button is clicked in the table attached.How can I do that?I w...
rarevesselt GUI 18 15,314 Dec-13-2018, 10:40 AM
    Thread: PyQt Login and Sqlalchemy
Post: RE: PyQt Login and Sqlalchemy

This is what seems to work for the checkval function.Check val check if the user with username is in database. def checkval(self): username= str(self.user.text()) password=s...
rarevesselt GUI 1 4,000 Dec-07-2018, 07:10 PM
    Thread: PyQt Selected row in Table Widget
Post: RE: PyQt Selected row in Table Widget

Thanks for your response.This is the working code.Thanks Axel_Erfurt.I removed the comma too. Quote:The row>-1 too does not do anything. def deleteProduct(self): row = self.products_tab...
rarevesselt GUI 3 23,746 Dec-07-2018, 07:00 PM
    Thread: PyQt Selected row in Table Widget
Post: RE: PyQt Selected row in Table Widget

(Dec-04-2018, 09:45 AM)rarevesselt Wrote: [attachment=502] How can I dynamically select row and get the product id value for the selected product to be passed into the query? def deleteProduct(self)...
rarevesselt GUI 3 23,746 Dec-06-2018, 09:55 AM
    Thread: PyQt Selected row in Table Widget
Post: PyQt Selected row in Table Widget

[attachment=502] How can I dynamically select row and get the product id value for the selected product to be passed into the query? def deleteProduct(self): row = self.products_table.curre...
rarevesselt GUI 3 23,746 Dec-04-2018, 09:45 AM
    Thread: PyQt Login and Sqlalchemy
Post: PyQt Login and Sqlalchemy

I am trying to check if username and password is found in the database.I am getting data from login.py.I am not getting the logic right. Any help will be appreciated.I am creating a CRUD app.User can ...
rarevesselt GUI 1 4,000 Nov-25-2018, 06:57 PM
    Thread: View function mapping is overwriting an existing endpoint function: index
Post: RE: View function mapping is overwriting an existi...

(Oct-09-2017, 06:28 AM)buran Wrote: sorry, at the moment I can not offer advise, structure looks fine and in accordance with the recommendation I haven't use flask_script and frankly for what you us...
rarevesselt General Coding Help 12 19,520 Oct-22-2017, 12:34 AM
    Thread: View function mapping is overwriting an existing endpoint function: index
Post: RE: View function mapping is overwriting an existi...

(Oct-09-2017, 06:28 AM)buran Wrote: sorry, at the moment I can not offer advise, structure looks fine and in accordance with the recommendation I haven't use flask_script and frankly for what you us...
rarevesselt General Coding Help 12 19,520 Oct-09-2017, 09:01 PM
    Thread: View function mapping is overwriting an existing endpoint function: index
Post: RE: View function mapping is overwriting an existi...

Error:File "manage.py", line 3, in <module> from thermos import app, db File "/Users/MAC/dev/thermos/thermos/__init__.py", line 16, in <module> import views File "/Users/MAC/dev/thermos/th...
rarevesselt General Coding Help 12 19,520 Oct-09-2017, 06:00 AM

User Panel Messages

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