| | |
Help undestanding popen3 function
![]() |
•
•
Join Date: Feb 2007
Posts: 19
Reputation:
Solved Threads: 0
I am supposed to design a GUI for ls, where the user could select these options from pull down menus. After the user selects options, clicking on go should run the ls.
The way I am understanding this is that could either use a text widget or labels.
Here is the problem, I have no idea what the popen3 function does.
Any help is greatly appriciated.
The way I am understanding this is that could either use a text widget or labels.
Here is the problem, I have no idea what the popen3 function does.
Any help is greatly appriciated.
This uses popen4(), but I think its similar:
python Syntax (Toggle Plain Text)
# run an external program (cmd) and retrieve its output: import os cmd = "ls" fin, fout = os.popen4(cmd) result = fout.read() print result
•
•
Join Date: Feb 2007
Posts: 19
Reputation:
Solved Threads: 0
I am not sure If to sure the popen 4. I am supposed to popen 3.
I guess the hardest part if that I am supposed to make a menu that allows the user to select option for ls such as ls -R, etc, from a drop-down menu.
I am confused I guess the most about which part to do first the menu or use the popen3 function?
I know that the menu button could be radiobuttons and be created in Tkinter, do buttons first then?
Thanks. I am kinda lost in this assingment.
I guess the hardest part if that I am supposed to make a menu that allows the user to select option for ls such as ls -R, etc, from a drop-down menu.
I am confused I guess the most about which part to do first the menu or use the popen3 function?
I know that the menu button could be radiobuttons and be created in Tkinter, do buttons first then?
Thanks. I am kinda lost in this assingment.
![]() |
Similar Threads
- PHP Feezing with a function (PHP)
- ASP Replace Function.... (ASP)
- missing function header (C++)
- Function that returns void (C++)
Other Threads in the Python Forum
- Previous Thread: Plural of Words
- Next Thread: old-style class
| Thread Tools | Search this Thread |
alarm ansi anydbm app assignment backend beginner binary bluetooth character cipher cmd coordinates customdialog cx-freeze data decimals development directory dynamic exe feet file float format function generator getvalue gnu graphics halp handling heads homework http ideas input ip itunes java keycontrol leftmouse line linux list lists loop maintain maze millimeter module mouse number numbers output parsing path pointer prime programming progressbar push py2exe pygame pymailer python queue random recursion recursive schedule screensaverloopinactive script slicenotation sqlite ssh statistics string strings sudokusolver text thread time tlapse tuple ubuntu unicode url urllib urllib2 variable ventrilo vigenere web webservice wikipedia write wxpython xlib xlwt






