Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Setting with copy warning
Post: RE: Setting with copy warning
(Feb-14-2023, 09:59 AM)Vadanane Wrote: You are getting the "setting with copy" warning because you are trying to assign a value to a subset of a DataFrame without using the .loc accessor. The .loc a... |
|
catlessness |
Data Science |
5 |
1,675 |
Feb-14-2023, 10:59 AM |
|
|
Thread: Setting with copy warning
Post: RE: Setting with copy warning
(Feb-13-2023, 02:07 PM)catlessness Wrote: Why am I getting the "setting with copy" warning with the code below? Am I not doing what they suggested? And the result is wrong so I guess there is some p... |
|
catlessness |
Data Science |
5 |
1,675 |
Feb-13-2023, 02:09 PM |
|
|
Thread: Setting with copy warning
Post: Setting with copy warning
Why am I getting the "setting with copy" warning with the code below? Am I not doing what they suggested? And the result is wrong so I guess there is some problem with this.
import pandas as pd
'''
..... |
|
catlessness |
Data Science |
5 |
1,675 |
Feb-13-2023, 02:07 PM |
|
|
Thread: super multiple parallel classes
Post: super multiple parallel classes
class a():
def __init__(self):
print('this is a')
class b():
def __init__(self):
print('this is b')
class c(a,b):
def __init__(self):
print('this is c')
s... |
|
catlessness |
General Coding Help |
2 |
1,294 |
Jun-07-2022, 01:46 PM |
|
|
Thread: pywin32 problems
Post: pywin32 problems
I was trying to take a screenshot of a hidden window so I found the code below. But there are so many new terms I don't understand.
Can anyone explain what the device context is? Is it like an address... |
|
catlessness |
General Coding Help |
0 |
1,184 |
Apr-01-2022, 01:04 PM |
|
|
Thread: [PySide6] Load ui with UiLoader
Post: RE: [PySide6] Load ui with UiLoader
yeah if I use my class as 'Form' and run setup(). That way I might as well go back using pyqt5 @_@
is one better than the other? pyqt5 and pyside6? |
|
catlessness |
GUI |
6 |
8,646 |
Nov-24-2021, 02:17 PM |
|
|
Thread: [PySide6] Load ui with UiLoader
Post: RE: [PySide6] Load ui with UiLoader
(Nov-24-2021, 01:45 PM)Axel_Erfurt Wrote: I can use the same code in PyQt5 and PyQt6
The only difference is
app.exec() / app.exec_()
from PyQt6.QtWidgets import QApplication, QMainWindow
from Py... |
|
catlessness |
GUI |
6 |
8,646 |
Nov-24-2021, 01:53 PM |
|
|
Thread: [PySide6] Load ui with UiLoader
Post: RE: [PySide6] Load ui with UiLoader
(Nov-23-2021, 02:20 PM)Axel_Erfurt Wrote: Using .ui files from Designer or QtCreator with QUiLoader and pyside6-uic
That's what I found. But either way, you can only access widgets though "self.ui" ... |
|
catlessness |
GUI |
6 |
8,646 |
Nov-23-2021, 04:26 PM |
|
|
Thread: [PySide6] Load ui with UiLoader
Post: [PySide6] Load ui with UiLoader
Is there any way to load ui with Pyside6 that the widgets become attributes of the class instead of attributes of another attribute of the class e.g. "self.ui"
Like how ppl load ui with "uic.loadUi()... |
|
catlessness |
GUI |
6 |
8,646 |
Nov-23-2021, 01:58 PM |
|
|
Thread: About QTimer and QThread and some general question
Post: About QTimer and QThread and some general question
1. if the interval of a QTimer is very small that not enough to let the slot function finish before timeout. What will happen? will QTimer wait for the function to finish before starting it again? Or ... |
|
catlessness |
GUI |
1 |
2,621 |
Nov-02-2021, 03:21 PM |
|
|
Thread: Subwindow
Post: RE: Subwindow
(Oct-21-2021, 08:51 PM)deanhystad Wrote: You really need to make a short WORKING example the demonstrates the problem. What you provided is not helpful.
I found the problem, I didn't read one of th... |
|
catlessness |
GUI |
5 |
2,783 |
Oct-23-2021, 06:28 PM |
|
|
Thread: Date format and past date check function
Post: RE: Date format and past date check function
just compare them
from datetime import datetime
#make present date in to string(year/month/day):
present=datetime.now().strftime("%Y/%m/%d")
#split the date into presentlist as int:
presentlist=lis... |
|
catlessness |
General Coding Help |
5 |
4,076 |
Oct-21-2021, 09:07 PM |
|
|
Thread: Subwindow
Post: RE: Subwindow
Also, since it warns about curser, I wonder if this has sth to do with that, my WThread1 is outputing texts in a QtextBrowser in the main window, and WThread2 is changing the text in a progressBar win... |
|
catlessness |
GUI |
5 |
2,783 |
Oct-21-2021, 08:45 PM |
|
|
Thread: Subwindow
Post: RE: Subwindow
(Oct-21-2021, 04:12 PM)deanhystad Wrote: No. Making a subwindow does not start a new thread.
Please make a small example that demonstrates your problem and post the code.
The structure of my work ... |
|
catlessness |
GUI |
5 |
2,783 |
Oct-21-2021, 04:53 PM |
|
|
Thread: Subwindow
Post: Subwindow
is instantiating a subwindow in the main window considered a new thread?
cuz I'm getting warnings like:
QObject::connect: Cannot queue arguments of type 'QTextCursor'
(Make sure 'QTextCursor' is regis... |
|
catlessness |
GUI |
5 |
2,783 |
Oct-21-2021, 12:49 PM |
|
|
Thread: Button clicked not working
Post: RE: Button clicked not working
(Jul-30-2021, 07:00 PM)deanhystad Wrote: Do you use any kind of version control software? If not, you really should start. Knowing what you changed to make something work, or more importantly what... |
|
catlessness |
GUI |
10 |
8,091 |
Oct-21-2021, 12:36 PM |
|
|
Thread: Add a function in QtextBrowser
Post: RE: Add a function in QtextBrowser
qwert (Sep-23-2021, 06:31 PM)deanhystad Wrote: That kind of thing does not belong in the class (plus it is really annoying). If you want to scroll to the bottom whenever you append text, use an int... |
|
catlessness |
GUI |
3 |
2,739 |
Sep-25-2021, 01:55 PM |
|
|
Thread: Add a function in QtextBrowser
Post: Add a function in QtextBrowser
This could be a general question about how to add a function in an existing class:
I want the textBrowser to scroll down to the bottom every time I append sth. ofc I cannot change QtextBrowser; Since... |
|
catlessness |
GUI |
3 |
2,739 |
Sep-23-2021, 05:17 PM |
|
|
Thread: Button clicked not working
Post: RE: Button clicked not working
(Jul-26-2021, 08:54 PM)Axel_Erfurt Wrote: you forgot super().__init__() in main
def main(self,MainWindow):
super().__init__()
MainWindow.setWindowTitle('Approach Curve-Map')
yea... |
|
catlessness |
GUI |
10 |
8,091 |
Jul-30-2021, 01:30 PM |
|
|
Thread: Button clicked not working
Post: RE: Button clicked not working
(Jul-26-2021, 03:30 PM)Axel_Erfurt Wrote: 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... |
|
catlessness |
GUI |
10 |
8,091 |
Jul-26-2021, 04:59 PM |