file upload option using wxPython Topic is solved
-
- Knows some wx things
- Posts: 37
- Joined: Mon Sep 26, 2016 6:08 am
file upload option using wxPython
I need to implement file upload option in wxPython. Can anyone tell me how to do it???
-
- Moderator
- Posts: 19164
- Joined: Fri Apr 21, 2006 8:03 pm
- Location: $FCE2
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!
-
- Knows some wx things
- Posts: 37
- Joined: Mon Sep 26, 2016 6:08 am
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.
You do not have the required permissions to view the files attached to this post.
-
- Moderator
- Posts: 19164
- Joined: Fri Apr 21, 2006 8:03 pm
- Location: $FCE2
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!