Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

½â¶ÁÓÃpythonд×Ô¼ºµÄlinux²¥·ÅÆ÷£¨1£©

¡¡¡¡½ÓÏÂÀ´ÈýÐÐÉèÖÃÈýÖÖ¹¦ÄÜ£¬treeview.set_search_column(0)£¬µ±ÔÚ½çÃæÖа´“Control+F”ʱ¿ÉÒÔËÑË÷µÚ0ÁÐÖеÄÄÚÈÝ£¬tvcolumn.set_sort_column_id(0)£¬µ±µã»÷´ËÁбêÌâµÄʱºòËùÓеÄÐа´´óС˳ÐòÖØÐÂÅÅÁС£²ÎÊý0ÊÇ
ÁÐÔÚModelÀïµÄÐòºÅ¡£½ÓÏÂÀ´treeview.set_reorderable·½·¨Ê¹µÃ¿ÉÒÔÓÃÊó±êÍ϶¯ÐнøÐÐÖØÐÂÅÅÁУ¬±ÈÈ磬°ÑµÚ¶þÐÐÍϵ½µÚÒ»ÐÐÇ°£¬»òÕßÍϵ½µÚÒ»ÐÐÄÚ£¬ÈõڶþÐбä³ÉµÚÒ»ÐеÄ×ӽڵ㣨ֻÓÐTreeStore¿ÉÒÔ×öµ½ÕâÒ»µã£©¡£
 ¡¡¡¡ÏÂÃæ¾ÍÀ´¸Ä¸ÄÕâ¸ö³ÌÐò£¬ÈÃËü±ä³ÉÒ»¸öÎļþä¯ÀÀÆ÷¡£

#
!/usr/bin/python
import
 gtk
import
 os
from
 mainw 
import
 MainWindow
class
 BasicTreeview(MainWindow):
    
def
 get_widget(self):
        dirname
=
u
"
E:\\lame-3.97
"  #Fix Me:You should replace it with any valid dirname in your system.
        dir_iter_dic
=
{dirname:None}
        treestore
=
gtk.TreeStore(str,str,str)
        
for
 dirpath, dirnames, filenames 
in
 os.walk(dirname):
            
for
 directory 
in
 dirnames:
                abspath
=
os.path.join(dirpath,directory)
                iterator
=
treestore.append(dir_iter_dic[dirpath],
                                            [directory,abspath,gtk.STOCK_DIRECTORY])
                dir_iter_dic[abspath]
=
iterator
 &n


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

Linux¡¢FreeBSD¡¢OpenBSD¡¢OpenSolarisÂÒÕ½

ÔÚ×ÀÃæ²Ù×÷ϵͳÁìÓò£¬WindowsºÍMac
OS¢¶Ïמø´ó²¿·ÖÊг¡£¬Linux¡¢BSDµÈÆäËû¸÷ÖÖϵͳֻÄÜÆ«°²Ò»Ó磬²»¹ýËüÃǵķ¢Ðа汾ȴÊÇÏ൱·á¸»£¬³ýÁË×î³£¼ûµÄUbuntuÖ®Í⻹ÓÐ
Fedora¡¢Debian¡¢FreeBSD¡¢OpenBSD¡¢OpenSolarisµÈµÈ£¬½ñÌìÎÒÃǾ͵¥´ÓÐÔÄܽǶȱȽÏÒ»ÏÂÕâЩ²»Í¬°æ±¾¡£
¡¡¡¡²Î²â¶ÔÏó(¾ùΪ64λ°æ±¾)£º
¡¡¡¡£­ Fedora 12£ºÊ ......

linuxµÍ¶ËÄÚ´æÓùâºó»áµ¼ÖÂoom killerËæ»úkillµô½ø³Ì

µ±ÄÚ´æ³öÏÖ²»¹»ÓõÄʱºò£¬oom-killer»ákillµôһЩ½ø³Ì
Õâ¸öÐÅÏ¢¿ÉÒÔÔÚ/var/log/messgerÀï²éµ½
µ±ÕâÖÖÇé¿ö³öÏÖµÄʱºò£¬¿ÉÒÔ½«ÏµÍ³ÀïһЩnattachΪ0µÄshmÇåÀíµô
¹ØÓڸߵͶËÄÚ´æµÄÎÊÌâ¿ÉÒÔ¿´ÈçÏÂ
Since this problem seems to popup on different lists, this message has
been cross-posted to the general Red Hat disc ......

linuxÏÂftpµÄÅäÖÃ

VSFTPDµÄÉèÖÃÑ¡Ïî
¡¡¡¡VSFTPDµÄÅäÖÃÎļþ/etc/vsftpd/vsftpd.confÊǸöÎı¾Îļþ¡£ÒÔ“#”×Ö·û¿ªÊ¼µÄÐÐÊÇ×¢ÊÍÐС£Ã¿¸öÑ¡ÏîÉèÖÃΪһÐУ¬¸ñʽΪ“option=value”£¬×¢Òâ“=”ºÅÁ½±ß²»ÄÜÁô¿Õ°×·û¡£³ýÁËÕâ¸öÖ÷ÅäÖÃÎļþÍ⣬»¹¿ÉÒÔ¸øÌض¨Óû§É趨¸öÈËÅäÖÃÎļþ£¬¾ßÌå½éÉܼûºó¡£
¡¡¡¡VSFTPD°üÖÐËù´øµ ......

LinuxÏÂC++ÀàµÄÏ̺߳¯Êý

×î½üÔÚÓÃC++±àдһ¸öRTSPµÄ¿Í»§¶Ë£¬ÓÉÓÚÒªÓõ½Ị̈߳¬¸ù¾ÝC±à³ÌµÄ¾­Ñ飬дÁËÈçÏ´úÂ룺
class LiRtspSession
{
    public:
       void* MainThreadFunc(void* pvData);
       void* AudioProcThreadFunc(void* pvData);
  & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ