Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Returning a message when SQL server is unavailable
Post: RE: Returning a message when SQL server is unavail...
In a pop-up window!
Thanks! |
|
Krissstian |
GUI |
2 |
1,127 |
Nov-27-2022, 03:33 PM |
|
|
Thread: Returning a message when SQL server is unavailable
Post: Returning a message when SQL server is unavailable
I'm using pymysql and I have a login script like the one bellow:
How can I raise a message to user when the sql server is unavailable?
import pymysql
import tkinter as tk
def submitact():
user ... |
|
Krissstian |
GUI |
2 |
1,127 |
Nov-27-2022, 11:22 AM |
|
|
Thread: Length of rows
Post: Length of rows
Hi,
How can I determine number of a value occur in a column from an sql db?
con = pymysql.connect(host='localhost', user='root', password='*', database='prices')
cur = con.cursor()
... |
|
Krissstian |
General Coding Help |
1 |
613 |
Nov-23-2022, 03:03 PM |
|
|
Thread: Different rows colours in treeview tkinter
Post: Different rows colours in treeview tkinter
I have a treeview wich is populated from an sql DB:
def fetch_data():
con = pymysql.connect(host='localhost', user='root', password='*', database='*')
cur = con.cursor... |
|
Krissstian |
GUI |
1 |
1,261 |
Nov-20-2022, 06:45 PM |
|
|
Thread: command require close window
Post: RE: command require close window
from tkinter import *
import tkintermapview
root = Tk()
root.title('Map Viewer')
root.geometry("900x700")
map_widget = tkintermapview.TkinterMapView(root, width=800, height=600, corner_radius=0)
map... |
|
Krissstian |
GUI |
14 |
2,941 |
Nov-19-2022, 04:18 PM |
|
|
Thread: command require close window
Post: RE: command require close window
(Nov-19-2022, 10:46 AM)Axel_Erfurt Wrote: you should make up your mind, tkinter or PyQt. Don't mix both.
https://www.tutorialspoint.com/how-do-i-...ter-window
Thank you Axel, i will follow your tut... |
|
Krissstian |
GUI |
14 |
2,941 |
Nov-19-2022, 02:34 PM |
|
|
Thread: command require close window
Post: RE: command require close window
(Nov-18-2022, 11:19 PM)Yoriz Wrote: The Button code looks like tkinter it shows Map as being the code called on a button press,
but the definition of Map is not shown in any of the code.
The rest o... |
|
Krissstian |
GUI |
14 |
2,941 |
Nov-19-2022, 06:23 AM |
|
|
Thread: command require close window
Post: RE: command require close window
(Nov-18-2022, 09:48 PM)deanhystad Wrote: What is preventing you from opening the window with new data?
Normally a GUI stays open. You push a button and it draws a plot. Maybe you enter some inf... |
|
Krissstian |
GUI |
14 |
2,941 |
Nov-19-2022, 06:08 AM |
|
|
Thread: command require close window
Post: RE: command require close window
(Nov-18-2022, 08:48 PM)deanhystad Wrote: There is nothing to fix. It is working exactly as it is supposed to work.
It sounds like this is the wrong tool for the job. What are you trying to accomp... |
|
Krissstian |
GUI |
14 |
2,941 |
Nov-18-2022, 09:03 PM |
|
|
Thread: command require close window
Post: RE: command require close window
(Nov-18-2022, 07:47 PM)deanhystad Wrote: Why would it stop executing? app.exec_() is going to run until all the windows are closed.
So, can you tell me haw can i solve the issue, i'm new in python.... |
|
Krissstian |
GUI |
14 |
2,941 |
Nov-18-2022, 08:04 PM |
|
|
Thread: command require close window
Post: RE: command require close window
(Nov-18-2022, 06:56 PM)deanhystad Wrote: In a post about a button command that closes a window I would expect to see code that creates a button and binds it to a command that closes the window.
Sorr... |
|
Krissstian |
GUI |
14 |
2,941 |
Nov-18-2022, 07:29 PM |
|
|
Thread: command require close window
Post: command require close window
Hi,
I have defined a command for a button wich terminates like this:
# save map data to data object
data = io.BytesIO()
m.save(data, close_file=False)
... |
|
Krissstian |
GUI |
14 |
2,941 |
Nov-18-2022, 06:49 PM |
|
|
Thread: QT Designer
Post: RE: QT Designer
I used the external tool of py charm. After that I used the classic method from cmd and it worked well. Thank you. |
|
Krissstian |
GUI |
4 |
1,704 |
May-26-2022, 09:45 AM |
|
|
Thread: QT Designer
Post: RE: QT Designer
(May-26-2022, 07:04 AM)menator01 Wrote: I've not ever used designer. Always felt that it adds unneeded code. Didn't like pycharm much but, there are lots of people who do. Anyway here is a quick exa... |
|
Krissstian |
GUI |
4 |
1,704 |
May-26-2022, 07:30 AM |
|
|
Thread: QT Designer
Post: QT Designer
Hi,
First of all I'm new in Python.
I have made with QT Designer a gui for my project an convert it into .py with external tool from PyCharm.
The begining of code is this:
from PyQt6 import QtCore, Q... |
|
Krissstian |
GUI |
4 |
1,704 |
May-26-2022, 06:16 AM |