[PyQt] command require close window - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: [PyQt] command require close window (/thread-38738.html) Pages:
1
2
|
RE: command require close window - Krissstian - Nov-19-2022 (Nov-18-2022, 09:48 PM)deanhystad Wrote: What is preventing you from opening the window with new data? Yes Dean it's very correct. RE: command require close window - Krissstian - Nov-19-2022 (Nov-18-2022, 11:19 PM)Yoriz Wrote: The import csv from tkinter import * from tkinter import ttk from tkinter import ttk, filedialog from tkinter import messagebox import pymysql from tkcalendar import DateEntry import os from datetime import datetime from PyQt5.QtWidgets import QApplication, QWidget, QHBoxLayout, QVBoxLayout from PyQt5.QtWebEngineWidgets import QWebEngineView # pip install PyQtWebEngine from cmath import pi from math import radians, cos, sin, sqrt, degrees, asin, atan2, acos import folium import sys import io import babel.numbersindeed the rest is made with tkinter RE: command require close window - Axel_Erfurt - Nov-19-2022 you should make up your mind, tkinter or PyQt. Don't mix both. https://www.tutorialspoint.com/how-do-i-open-a-website-in-a-tkinter-window RE: command require close window - Krissstian - Nov-19-2022 (Nov-19-2022, 10:46 AM)Axel_Erfurt Wrote: you should make up your mind, tkinter or PyQt. Don't mix both. Thank you Axel, i will follow your tutorial and try the code from tkinter. ! RE: command require close window - Krissstian - Nov-19-2022 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_widget.place(relx=0.5, rely=0.5, anchor=CENTER) map_widget.set_position(48.860381, 2.338594) # Paris, France map_widget.set_zoom(9) marker_2 = map_widget.set_marker(48.860381, 2.338594, text="Paris") root.mainloop()I managed to do something working... The next question will be ?Do you know a way for working offline, a way to download offline maps for TkinterMapView? Or working on a piece of map like South West of France or any other country? |