Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Read csv file through PyCharm
Post: RE: Read csv file through PyCharm

You can test the file exists, import os import pandas as pd myfile = r"C:\Users\hakjo\PycharmProjects\jm1\sentiment-test.crv" if os.path.isfile(myfile): df=pd.read_csv(myfile) print(df) else...
Axel_Erfurt General Coding Help 2 69 1 hour ago
    Thread: How would I find the url name from a ip address
Post: RE: How would I find the url name from a ip addres...

import socket url = "216.40.47.17" print(socket.gethostbyaddr(url))
Axel_Erfurt Networking 1 194 Yesterday, 08:08 PM
    Thread: python3 vs python
Post: RE: python3 vs python

Maybe it will eventually happen, but will we still be alive when the time comes? Python (2) will probably remain for some time for reasons of compatibility.
Axel_Erfurt News and Discussions 4 169 Jul-28-2021, 01:42 PM
    Thread: Button clicked not working
Post: RE: Button clicked not working

you forgot super().__init__() in main def main(self,MainWindow): super().__init__() MainWindow.setWindowTitle('Approach Curve-Map')
Axel_Erfurt GUI 9 289 Jul-26-2021, 08:54 PM
    Thread: Button clicked not working
Post: RE: Button clicked not working

os.system('python -m PyQt5.uic.pyuic PI_GUI_App_Map.ui -o PI_GUI_App_Map.py')Do that once (in a terminal)and remove this line. Without knowing the code of PI_GUI_App_Map and PI_GUI_Funcc and cou...
Axel_Erfurt GUI 9 289 Jul-26-2021, 03:30 PM
    Thread: Button clicked not working
Post: RE: Button clicked not working

print('clicked') is not working?
Axel_Erfurt GUI 9 289 Jul-23-2021, 05:58 PM
    Thread: change self.var in a function
Post: RE: change self.var in a function

The lists are empty and will remain so until you fill them.
Axel_Erfurt GUI 3 202 Jul-21-2021, 06:08 PM
    Thread: [split] Is there some coding that will do the following in 3 separate events?
Post: RE: [split] Is there some coding that will do the ...

Quote:CodeIgniter already uses Python No, CodeIgniter is a PHP framework
Axel_Erfurt General Coding Help 23 892 Jul-19-2021, 07:17 PM
    Thread: Tuple to bytes
Post: RE: Tuple to bytes

t_header = ( "Content-type: image/png \r", "Content-Language: pt-BR \r", ) b_header = bytearray(str(t_header), 'utf-8') print(type(b_header))Output:<class 'bytearray'>
Axel_Erfurt General Coding Help 4 200 Jul-10-2021, 06:40 PM
    Thread: Scaling text QLabel following display mode windows '100%, 125% ...)
Post: RE: Scaling text QLabel following display mode win...

(Jul-07-2021, 03:56 PM)VIGNEAUD Wrote: So I set a font for these labels ... A font or a font with size?
Axel_Erfurt GUI 2 158 Jul-07-2021, 06:05 PM
    Thread: virtual environment
Post: RE: virtual environment

locate activate | grep "/bin/activate"
Axel_Erfurt General Coding Help 4 308 Jul-02-2021, 08:28 AM
    Thread: I can't play MP4 files
Post: RE: I can't play MP4 files

What is your OS? Qt5 uses gstreamer.
Axel_Erfurt GUI 6 287 Jun-29-2021, 08:52 PM
    Thread: I can't play MP4 files
Post: RE: I can't play MP4 files

Whats your OS? maybe you're missing qt5 mediaplugins Your code works for me (added imports) #!/usr/bin/python3 # -*- coding: utf-8 -*- from PyQt5.QtWidgets import (QWidget, QApplication, QPushButto...
Axel_Erfurt GUI 6 287 Jun-29-2021, 08:18 PM
    Thread: Drawing in PySide
Post: RE: Drawing in PySide

something like this? https://stackoverflow.com/questions/5711...aphicsview
Axel_Erfurt GUI 3 311 Jun-26-2021, 09:30 AM
    Thread: Help converting python qt4 script to qt5
Post: RE: Help converting python qt4 script to qt5

self.edit.textChanged.connect(self.edited)
Axel_Erfurt GUI 6 317 Jun-24-2021, 12:56 PM
    Thread: just add 2 codes together.
Post: RE: just add 2 codes together.

Please don't make duplicate posts. You already asked that. https://python-forum.io/thread-34061-pos...#pid143815
Axel_Erfurt General Coding Help 3 190 Jun-24-2021, 12:30 PM
    Thread: Path sacn problem
Post: RE: Path sacn problem

What do you want to achieve in the end? Would you like to read out certain values ​​of files in the leveldb folder? If you know the Path_to/Chrome/User Data you can get a list of all leveldb folder...
Axel_Erfurt General Coding Help 10 542 Jun-24-2021, 12:09 PM
    Thread: Help converting python qt4 script to qt5
Post: RE: Help converting python qt4 script to qt5

change your imports import sys import glob import os import tempfile import subprocess import shlex import shutil from configparser import ConfigParser import urllib from PyQt5.QtWidgets import * fr...
Axel_Erfurt GUI 6 317 Jun-23-2021, 06:11 PM
    Thread: Created zipfile without all the subfolder?
Post: RE: Created zipfile without all the subfolder?

or if you want to use full paths, import zipfile from os.path import basename zip_location = "/tmp/test.zip" text_file = "/tmp/test.txt" with zipfile.ZipFile(zip_location, 'w') as zipObj: ...
Axel_Erfurt General Coding Help 3 252 Jun-23-2021, 12:30 PM
    Thread: Created zipfile without all the subfolder?
Post: RE: Created zipfile without all the subfolder?

this works for me, import zipfile zip_location = "test.zip" text_file = "test.txt" with zipfile.ZipFile(zip_location, 'w') as zipObj: zipObj.write(text_file)
Axel_Erfurt General Coding Help 3 252 Jun-23-2021, 12:14 PM

User Panel Messages

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