python


Updating the main window from mdi subwindow in GUI


I'm somewhat new to PYQT and I am having trouble updating the main window from an mdi subwindow. In in the subwindow, I have a lot of information that is getting saved into a directory variable and I would like to update a Qlistwidget with the key names of the directory in the main window. I have read lots of examples about signals and slots but not sure if that is the approach I need to take. Also, I was not clear on how they are used. Any advice would be greatly appreciated. Thank you for your time
Main window function for updating QlistWidget
def updateList(self):
for i in range(0,len(self.data)):
newEntry= QListWidgetItem('New item')
listBox.addItem(newEntry)
Mdi subwindow function
def saveData(self):
if len(self.UserInput_Name.text()) > 0:
data.update({self.UserInput_Name.text():self.current_data})
Main.updateList()

Related Links

Passing command line arguments in python by pytest
Not using grid anywhere in class still gives error 'cannot use geometry manager pack inside . which already has slaves managed by grid' in tkinter
Minimax Alogrithm for TicTacToe [python]
Zero Crossings Rate
Recursive function with one argument that does something to each element
Storing and Graphing results of API queried via Python. [on hold]
While handling Exceptions, how to print any error statement that occurs? See below for more details
Having trouble getting my calculator app to print the result I want
Why am I getting this ValueError?
How to recognize single digit in string to insert leading zero?
How can I configure a test environment with Falcon
Computing the gradient for a custom TensorFlow op with py_func()
get all files in drive via REST API
Setting an image as a tkinter window background
Displaying A File Using StringVar() // Tkinter Python 3.5
How are features ranked in RFECV in scikit learn(sklearn)?

Categories

HOME
sql-server
ember.js
elixir
shopify
bing
firebase-app-indexing
avro
zend-framework2
sbt-assembly
apache2
apple-numbers
branch.io
xtext
bro
i2c
onenote-api
xamarin-studio
cakephp-2.9
qt-installer
simple-injector
pyephem
statusbar
prediction
k2
azure-servicebus-queues
fabric
auditing
skmaps
guile
ui5
pptp
dss
cgal
reply
pygooglechart
jboss5.x
crt
backup-strategies
vsts-package-management
autocompletetextview
swagger-editor
zero
agent
nashorn
stress-testing
worker
bids
prototypejs
rdw
defold
appstore-approval
sapui
multi-agent
rhel6
crystal-reports-8.5
google-maps-ios
pagefile
info
python-hypothesis
lotus
vici
coremidi
gradle-script-kotlin
alter
manifest.mf
angularjs-ng-pattern
scalar
gherkin
gradle-release-plugin
inet
altbeacon
anythingslider
insert-into
abas
cpan
client-side-validation
inputaccessoryview
activity-streams
left-recursion
adcolony
livechat
dmp
x-ua-compatible
genetic-programming
java-collections-api
bsp
httpcontext
voldemort
dbsetup
factors
gamepad
installshield-2009
leptonica
multiple-login
grunt-contrib-compass
qtgui
zend-framework-modules
pys60
dropdownlistfor
pitch
web-safe-fonts
plone-funnelweb
legacy-code
die
flexicious
surf
handwriting
executable-format
server-error
recordset
hibernate3-maven-plugin
hadoop-plugins
oggvorbis
internals

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App