From cc6eca35090e1735e2dde009185476dc80726b97 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 2 Jan 2004 19:36:26 +0000 Subject: [PATCH] New wxDesigner-less version of the MimeTypesManager demo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/mimetypes.wdr | Bin 12489 -> 0 bytes wxPython/demo/mimetypes_wdr.py | 155 ----------- wxPython/demo/wxMimeTypesManager.py | 404 ++++++++++++++++++++-------- 3 files changed, 288 insertions(+), 271 deletions(-) delete mode 100644 wxPython/demo/mimetypes.wdr delete mode 100644 wxPython/demo/mimetypes_wdr.py diff --git a/wxPython/demo/mimetypes.wdr b/wxPython/demo/mimetypes.wdr deleted file mode 100644 index d3d9583c6d8e39438c33fbdd71ce06e53b874c0c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12489 zcmeHNTaV&46sGs9+HKW~`cm<}QXl&;Zv--6ZAhZT%w=B?g>)J%B#2~0roW<3RewVN z<@9{99RdkVh6&Ts#o8>feSGZm`SY=TGM63a-A1GFAw9d&r&KxdqK-eBhBwjslrsm0 zp?=ZwBYI@@JM;>L9o90e?kDt?HB~LtFV!`^qo+T5(v#mWoa;jG;<&~}*^`Z>o`EE9)ydmKusJIlt92@s2Ot52_udrBA!>kOG` z5BL!Fpb%+772iOL640!gV6W5aFiRUyKjtoIz93P8#u-igP`i!eFhC~)osB|NAU!`o zFQ``nh>+1ums#deivxks{XOu(1AMAr1Q}_bHtagqz(xsps@*k-AYKspVeo%L5cUv) zeb(298aMX^kF=yo!ZjmL(TvGefb$P?O?sde&E#UpXeYJ*3k;J>(6Fpm1N*56flxri z2*WqG^G&0Ke<0>v*5*Xu3*pMpF?JC=WeHZgyhU!xV5W{7Eq&?5WlnlbnRDY&?2ipU z@SsjO^Yt>6BPpkF0P8?jxKiRThP}yM^bW%xN|5=I9`emB=gI5Yjez)eP4HiY^!e0F zx(k1@wo6i#9M)R(*HpZkE^G>wrwdGg*8Fs-GL$1>y1*JSU60wUgAFL3;Hj3$xj#+MAZHk;Yq#1PYz5YYs5>8xJ=lR$5dEa~q=gIQR8r)8 zo-JL$ap36#gy=$@QPOipZ7wCZ=pH-O3U&1h9(KK$jl+NizlLYq*9jzPRx6$VaFT?) z@Mjw1{g%CJiD2o2F{ww>{CGA>Ju~RHOg2lYFijv1o?2m*dogR{Ak()u{TWtD6@Qiv zkp6?w{X1b%bbcF*fiLE)wo@@iqmbBl2~|A{%cEWj&N(ymAzvMb6B-8=7g803AR|@? z*N2YY>R6_6jmEVj1f|b~&{xzKZVR9fGducK9-<$qvKEM75fZFY7t>|(z^Mfd9)A`& z$mWJ|KiNBiC!3eGJ@-FAlTXqqs=IdT6l-0y=uA;^|3g_B0&x(Zkv zBSW%y&WR!Ua9~Y43=X`+kd7CP7ydk^pw=-t5!`?2l+)4Ow!>_WpkMAJc=93w9_)=z zxj#sbSaUCEhqKuzm>d&FFnZ#MW$P57?~_kmfpH>8Jp{p7kDQ3T@PqgW8G_*xLu`kc z{8%Z13svDJQyRA`JFM5cnY5-;$%3OgZ%9YcG7ONQaN3vGR$y%79ND%cMt}mn8y|(2uhnu4I_J{jX%uQ2Hrx*UcMUgC6-KCh|}JqKn|bfiG(? zY)1sHYG|pZrGV?rs~}tk&Fu46bOzl9b2;G&FeuQt>$8gCM=^clCc%avO0EEfiYPF= zhJag{U%)8IGs-cmGsK@%`qaU**_#+PjTlI6;rZP`q|qOn4Lqg6gz6v)>;*h{fFHOXrz z3gm0w68!=bGCZ?gyyvqS6j@wx.MimeTypesManager class allows the application to retrieve the +information about all known MIME types from a system-specific location and the +filename extensions to the MIME types and vice versa. After initialization the +methods GetFileTypeFromMimeType() and GetFileTypeFromExtension() +may be called: they will return a wx.FileType object which may be further +queried for file description, icon and other attributes. +A global instance of wx.MimeTypesManager is always available as +wx.TheMimeTypesManager. It is recommended to use this instance instead +of creating your own because gathering MIME information may take quite a long +on Unix systems. +This demo shows how to use wx.TheMimeTypesManager to list all known MIME types +and retrieve that information as a wx.FileType from either an extension or +MIME type. +For further information please consult the wxWindows documentation for +wx.MimeTypesManager and wx.FileType. +""" +#---------------------------------------------------------------------- if __name__ == '__main__': import sys,os -- 2.50.0