Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Button clicked not working
Post: RE: Button clicked not working

(Yesterday, 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 o...
catlessness GUI 7 172 Yesterday, 04:59 PM
    Thread: Button clicked not working
Post: RE: Button clicked not working

(Yesterday, 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 o...
catlessness GUI 7 172 Yesterday, 04:55 PM
    Thread: Button clicked not working
Post: RE: Button clicked not working

(Jul-23-2021, 05:58 PM)Axel_Erfurt Wrote: print('clicked') is not working? I'm not sure if it is wrong to connect one signal to two slots that way, but i think the second part (Sample_Stat) is not w...
catlessness GUI 7 172 Yesterday, 01:26 PM
    Thread: Button clicked not working
Post: RE: Button clicked not working

(Jul-23-2021, 05:58 PM)Axel_Erfurt Wrote: print('clicked') is not working?no, it is really weird.
catlessness GUI 7 172 Yesterday, 01:11 PM
    Thread: Button clicked not working
Post: Button clicked not working

import sys,os,re,time import numpy as np import PI_GUI_App_Map as pgam import PI_GUI_Func as pgfunc from PyQt5 import QtWidgets, QtGui from PyQt5.QtWidgets import QApplication, QMainWindow, QLineEdit,...
catlessness GUI 7 172 Jul-23-2021, 05:02 PM
    Thread: change self.var in a function
Post: RE: change self.var in a function

(Jul-21-2021, 07:36 PM)deanhystad Wrote: This is what you are trying to do: class MyClass: def __init__(self, alist): self.alist = alist def func(self, list_arg): list_arg= ...
catlessness GUI 3 165 Jul-22-2021, 11:00 AM
    Thread: change self.var in a function
Post: change self.var in a function

import sys,os,re import numpy as np import PI_GUI_App_Map as pgam from PyQt5 import QtWidgets, QtGui from PyQt5.QtWidgets import QApplication, QMainWindow, QLineEdit, QMessageBox ,QWidget,QGridLayout,...
catlessness GUI 3 165 Jul-21-2021, 04:45 PM
    Thread: remove widgets of a layout
Post: RE: remove widgets of a layout

Sorry that was copied when I was trying another approach to delete them, the function in the file is : def clearlayout(layout): for i in reversed(range(layout.count())): print(layout.itemA...
catlessness GUI 2 1,705 Apr-02-2020, 07:25 PM
    Thread: Tkinter focus
Post: RE: Tkinter focus

the solution i have now is very limited to my program, I simply bind every widgets with '<Return>' as: def refresh(event): ''' function here ''' widget1.bind('<Return>',refres...
catlessness GUI 5 2,408 Apr-02-2020, 07:14 PM
    Thread: remove widgets of a layout
Post: remove widgets of a layout

i have some problem deleting widgets from the layout: I used the removeItem() function but the widgets are still there: def clearlayout(layout): for i in reversed(range(layout.count())): p...
catlessness GUI 2 1,705 Apr-02-2020, 05:40 PM
    Thread: complex algebraic function simplify
Post: complex algebraic function simplify

import sympy a=sympy.Symbol('a') C=sympy.Symbol('C') t=sympy.Symbol('t') E=sympy.Symbol('E') R1=sympy.Symbol('R1') R2=sympy.Symbol('R2') i=sympy.Symbol('i') i=E/(R1+1/(R2+a*i*t/(C-i))) res=sympy.sol...
catlessness Data Science 1 529 Mar-12-2020, 02:52 PM
    Thread: Tkinter focus
Post: RE: Tkinter focus

ive nearly finished lol just optimising but thank you
catlessness GUI 5 2,408 Mar-09-2020, 02:12 PM
    Thread: Tkinter focus
Post: Tkinter focus

import tkinter as tk window=tk.Tk() window.title('Impedance simulation') window.geometry('900x700') entry1=tk.Entry(window,show=None,textvariable=tk.StringVar(value=1)) entry2=tk.Entry(window,show=No...
catlessness GUI 5 2,408 Mar-08-2020, 05:24 PM
    Thread: moniter which widget triggerd event
Post: RE: moniter which widget triggerd event

I actually want to monitor any key event, and on any entry in the window, that why i used '<Key>' and window.bind() the purpose is to run a parameter assignment function whenever there are value...
catlessness GUI 5 733 Mar-07-2020, 01:33 AM
    Thread: moniter which widget triggerd event
Post: RE: moniter which widget triggerd event

the problem is I dont really know if there is this function to focus on the entry changed, this is the closest i can give: import tkinter as tk window=tk.Tk() window.geometry('450x500') frame=tk.Frame...
catlessness GUI 5 733 Mar-07-2020, 12:46 AM
    Thread: moniter which widget triggerd event
Post: moniter which widget triggerd event

I use tkinter and have several entries now i'm using frame.bind('<Key>',func)to monitor event, Q:can this function func tell me which entry had been changed and point a variable to it like: wind...
catlessness GUI 5 733 Mar-06-2020, 07:20 PM
    Thread: try except problem
Post: try except problem

try: materialradius=float(entry_materialR.get()) r=float(entry_poreradius.get()) l=float(entry_porelength.get()) pdensity=float(entry_poredensity.get()) order=int(entry_order.get(...
catlessness General Coding Help 1 688 Mar-06-2020, 06:09 PM
    Thread: Tkinter problem
Post: Tkinter problem

1.if you just run this, youll have a window to input 'order' and 'Rs'. 2.Enter a number in 'order' and press ok. 3.Change the number in 'order' again and press ok again. youll know what wrong's with...
catlessness GUI 1 813 Jan-14-2020, 11:38 PM
    Thread: MRO About super()
Post: MRO About super()

class A(): def __init__(self): print('enter A') print('leave A') class B(A): def __init__(self): print('enter B') super().__init__() print('leave B') ...
catlessness General Coding Help 1 786 Jan-11-2020, 11:53 PM

User Panel Messages

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