Re: [Tutor] Using dictionary key values as subprocess arguments

2013-08-01 Thread Alan Gauld
On 01/08/13 18:51, m...@froward.org wrote: I'm trying to use dictionary key values as arguments being passed via subprocess. The following is supposed to use argv arguments passed for the target host, and direction to turn the ipmi interface up on or off. When I run it I get an error about TypeE

Re: [Tutor] Using dictionary key values as subprocess arguments

2013-08-01 Thread Steven D'Aprano
Hi Mike, and welcome! On 02/08/13 03:51, m...@froward.org wrote: Hi all, I'm trying to use dictionary key values as arguments being passed via subprocess. The following is supposed to use argv arguments passed for the target host, and direction to turn the ipmi interface up on or off. When I ru

Re: [Tutor] Implementing Copy/Cut/Paste menu actions using MainWindow/PyQT4

2013-08-01 Thread Alan Gauld
On 01/08/13 15:52, SM wrote: I am using the PyQT4 designer... This list is for those learning Python and its standard library. You may find somebody here that knows QT well enough to answer but you will have more chance of success on a PyQT specific forum or the main Python list. -- Alan G Au

[Tutor] Implementing Copy/Cut/Paste menu actions using MainWindow/PyQT4

2013-08-01 Thread SM
Hello, I am using the PyQT4 designer to create the MainWindow with very simple drop-down menu items. File->Exit, Edit->Cut,Copy,Paste After converting .ui to .py I am trying to make some manual modifications to the Python script to set the SLOTs for cut/copy/paste actions. Within the main window,

Re: [Tutor] unittest skipping tests

2013-08-01 Thread Alan Gauld
On 01/08/13 14:22, Matthew Ngaha wrote: Thanks guys. i was following some examples and noticed it. I tried to use it in my program and the same thing happened. In this example, there are 6 tests, and only 4 run. http://bpaste.net/show/abLNTHU49w1j2M8Fey8X/ You're still just teasing us. You sho

Re: [Tutor] unittest skipping tests

2013-08-01 Thread Walter Prins
Hi, On 1 August 2013 14:22, Matthew Ngaha wrote: > Thanks guys. i was following some examples and noticed it. I tried to > use it in my program and the same thing happened. In this example, > there are 6 tests, and only 4 run. > > http://bpaste.net/show/abLNTHU49w1j2M8Fey8X/ > The reason that 2

Re: [Tutor] unittest skipping tests

2013-08-01 Thread Walter Prins
Hi, On 1 August 2013 13:11, Matthew Ngaha wrote: > im trying to do some unittesting and i've written 1 class with 4 test > methods and it skips 2 of these methods for no reason. If i comment > out the 2 it doesn't skip, it will now test the 2 it previously > skipped. Is this the default behaviou

Re: [Tutor] unittest skipping tests

2013-08-01 Thread Alan Gauld
On 01/08/13 13:11, Matthew Ngaha wrote: im trying to do some unittesting and i've written 1 class with 4 test methods and it skips 2 of these methods for no reason. If i comment out the 2 it doesn't skip, it will now test the 2 it previously skipped. Is this the default behaviour I'm pretty sur