file upload option using wxPython Topic is solved
file upload option using wxPython
I need to implement file upload option in wxPython. Can anyone tell me how to do it???
Re: file upload option using wxPython
Upload to where? To an ftp server would be easy using wxFTP. A HTTP upload should be possible using wxHTTP and wxHTTP::SetPostBuffer or wxHTTP::SetPostText, but you'd have to build the http buffer your self and of course you need a CGI script on the receiving side.
Use the source, Luke!
Re: file upload option using wxPython
I have to compare two files to find the difference in their content in Python. I created a frame using wxpython. It has an option to choose number of files to be compared. After that the option of adding those files to it is what I meant. I have attached a sample image for clarity.
- Attachments
-
- this option is what I meant
- sample.png (7.33 KiB) Viewed 2210 times
Re: file upload option using wxPython
There is no dedicated control for a file list like that. You could use two wxFilePickerCtrl's.
In the latest wxWidgets version you could also use wxAddRemoveCtrl, but i'm not sure if this is already available in wxPython.
Otherwise just use any list control, e.g. a wxListBox and a button to add more files.
In the latest wxWidgets version you could also use wxAddRemoveCtrl, but i'm not sure if this is already available in wxPython.
Otherwise just use any list control, e.g. a wxListBox and a button to add more files.
Use the source, Luke!