SpiritualMadMan 39 Junior Poster in Training

This code works for a range of "Button_xx"

Selection=[]
    for i in range(16):
        Selection.append(getattr(tcDict.get("form"), "Button_%d" %(i+1)))
        Selection[i].setEnabled(False)

What had me "stumped" was I forgot that the QT calls are "Functions" to which you "pass" a parameter not "set" a parameter.

that is: Selection.setEnabled = False will not work

My VB6 days getting in the way... :)

Gribouillis commented: Thanks for sharing. +13
SpiritualMadMan 39 Junior Poster in Training

I have a form from which I can launch various Test Modules.

The Form has 16 PushButtons, one for each of the possible Modules.

I need to disable Button_2 through Button_11 until the Modules that are connected to Button_1 and Button_0 are succesfully completed.

The Buttons are on a pyQT mainwindow, tabbed form which is referenced by a class titled, "tcmainform".

tcmainform is in turn instansiated? as simply, "form"

Again, what I want to do is disable/enabled buttons in the main code stream.

Is there a way to do it.

I would post my code for your review but NMCI will not allow any of my development stuff on their network which is the only way I can view/post on the web while at work.

Thanks!
Mike Sr.

SpiritualMadMan 39 Junior Poster in Training

I need to point out another possible "killer" for a VB6 executable...

If your project uses Active-X Controls such as the MSFlexGrid, and it is not already on the target system, it will have to be added to Win-Sys32 and manually Registered if you are not using an Installer/Packager...

You can develope a project on any system. But, before sending it out, test it on a clean minimally configured system.

Again, any system that has a lot of Microsoft Products already installed may fool you into thinking the exe is all you need.

Not everyone is as deeply committed to Microsoft, so remember that Add-Ins and Project Components may ne be on the target system...

debasisdas commented: agree +13
SpiritualMadMan 39 Junior Poster in Training

Was able to get to the Blog after all.

I recieved the following recommendations from the author:

http://wiki.wxpython.org/LongRunningTasks

http://www.blog.pythonlibrary.org/2010/05/22/wxpython-and-threads/

http://www.blog.pythonlibrary.org/2010/06/27/wxpython-and-pubsub-a-simple-tutorial/

Can't get to the Wiki from work, I tried, so, it's homework. :)

Gribouillis commented: good luck +13