Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Is it possible to loop through class attributes via string?
Post: RE: Is it possible to loop through class attribute...

Completely misunderstood the syntax of getAttr. Issue resolved getattr(self, "PoseSlot_1").setIcon(QtGui.QIcon(self.jsonFolderPath + "/icon/" + self.jsonTemplateData.values()[0][0]["icon"]))
04chiak General Coding Help 3 9,805 Feb-04-2018, 09:29 PM
    Thread: Is it possible to loop through class attributes via string?
Post: RE: Is it possible to loop through class attribute...

I'm currently trying to create a button gallery, however the button's functionality is triggered but a button attribute function. The reason for iteration through all these buttons. IE self.PoseSlot_1...
04chiak General Coding Help 3 9,805 Feb-04-2018, 05:10 PM
    Thread: Is it possible to loop through class attributes via string?
Post: Is it possible to loop through class attributes vi...

Hey guys, I'm stumped on this issue. I currently am referencing a UI file built in pyqt, and though it wise to create a while loop to iterate through the button commands. However, it seems to be prett...
04chiak General Coding Help 3 9,805 Feb-04-2018, 04:29 PM

User Panel Messages

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