| | |
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 |
abrupt ansi anti approximation assignment avogadro backend beginner binary bluetooth calculator character cmd code customdialog cx-freeze data decimals dictionaries dictionary directory dynamic error examples exe file float format function gnu graphics gui heads homework http ideas import input itunes java launcher leftmouse line linux list lists loop module mouse number numbers output parsing path pointer port prime programming progressbar projects push py2exe pygame pyglet pyqt python random recursion schedule screensaverloopinactive script scrolledtext sqlite ssh statistics string strings sudokusolver sum table terminal text thread threading time tlapse tricks tuple tutorial twoup ubuntu unicode urllib urllib2 variable ventrilo wikipedia write wxpython xlib






