1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804
|
<?xml version="1.0" standalone="no"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<refentry id="class-gtktreeview">
<refnamediv>
<refname>gtk.TreeView</refname>
<refpurpose>a widget for displaying both trees and lists.</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<classsynopsis language="python">
<ooclass><classname>gtk.TreeView</classname></ooclass>
<ooclass><classname><link
linkend="class-gtkcontainer">gtk.Container</link></classname></ooclass>
<constructorsynopsis language="python">
<methodname><link
linkend="constructor-gtktreeview">gtk.TreeView</link></methodname>
<methodparam><parameter
role="keyword">model</parameter><initializer>None</initializer></methodparam>
</constructorsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-model">get_model</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-model">set_model</link></methodname>
<methodparam><parameter
role="keyword">model</parameter><initializer>None</initializer></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-selection">get_selection</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-hadjustment">get_hadjustment</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-hadjustment">set_hadjustment</link></methodname>
<methodparam><parameter
role="keyword">adjustment</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-vadjustment">get_vadjustment</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-vadjustment">set_vadjustment</link></methodname>
<methodparam><parameter
role="keyword">adjustment</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-headers-visible">get_headers_visible</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-headers-visible">set_headers_visible</link></methodname>
<methodparam><parameter
role="keyword">headers_visible</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--columns-autosize">columns_autosize</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-headers-clickable">set_headers_clickable</link></methodname>
<methodparam><parameter
role="keyword">active</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-rules-hint">set_rules_hint</link></methodname>
<methodparam><parameter
role="keyword">setting</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-rules-hint">get_rules_hint</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--append-column">append_column</link></methodname>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--remove-column">remove_column</link></methodname>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--insert-column">insert_column</link></methodname>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
<methodparam><parameter
role="keyword">position</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--insert-column-with-attributes">insert_column_with_attributes</link></methodname>
<methodparam><parameter>position</parameter></methodparam>
<methodparam><parameter>title</parameter></methodparam>
<methodparam><parameter>cell</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--insert-column-with-data-func">insert_column_with_data_func</link></methodname>
<methodparam><parameter>position</parameter></methodparam>
<methodparam><parameter>title</parameter></methodparam>
<methodparam><parameter>cell</parameter></methodparam>
<methodparam><parameter>func</parameter></methodparam>
<methodparam><parameter>data</parameter>
<initializer>None</initializer></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-column">get_column</link></methodname>
<methodparam><parameter role="keyword">n</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-columns">get_columns</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--move-column-after">move_column_after</link></methodname>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
<methodparam><parameter
role="keyword">base_column</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-expander-column">set_expander_column</link></methodname>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-expander-column">get_expander_column</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-column-drag-function">set_column_drag_function</link></methodname>
<methodparam><parameter role="keyword">func</parameter></methodparam>
<methodparam><parameter role="keyword">user_data</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--scroll-to-point">scroll_to_point</link></methodname>
<methodparam><parameter
role="keyword">tree_x</parameter></methodparam>
<methodparam><parameter
role="keyword">tree_y</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--scroll-to-cell">scroll_to_cell</link></methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
<methodparam><parameter
role="keyword">use_align</parameter></methodparam>
<methodparam><parameter
role="keyword">row_align</parameter></methodparam>
<methodparam><parameter
role="keyword">col_align</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--row-activated">row_activated</link></methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--expand-all">expand_all</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--collapse-all">collapse_all</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--expand-to-path">expand_to_path</link></methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--expand-row">expand_row</link></methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter
role="keyword">open_all</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--collapse-row">collapse_row</link></methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--map-expanded-rows">map_expanded_rows</link></methodname>
<methodparam><parameter role="keyword">func</parameter></methodparam>
<methodparam><parameter role="keyword">data</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--row-expanded">row_expanded</link></methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-reorderable">set_reorderable</link></methodname>
<methodparam><parameter
role="keyword">reorderable</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-reorderable">get_reorderable</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-cursor">set_cursor</link></methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter
role="keyword">focus_column</parameter><initializer>None</initializer></methodparam>
<methodparam><parameter
role="keyword">start_editing</parameter><initializer>False</initializer></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-cursor-on-cell">set_cursor_on_cell</link></methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter
role="keyword">focus_column</parameter><initializer>None</initializer></methodparam>
<methodparam><parameter
role="keyword">focus_cell</parameter><initializer>None</initializer></methodparam>
<methodparam><parameter
role="keyword">start_editing</parameter><initializer>False</initializer></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-cursor">get_cursor</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-bin-window">get_bin_window</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-path-at-pos">get_path_at_pos</link></methodname>
<methodparam><parameter role="keyword">x</parameter></methodparam>
<methodparam><parameter role="keyword">y</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-cell-area">get_cell_area</link></methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-background-area">get_background_area</link></methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-visible-rect">get_visible_rect</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--widget-to-tree-coords">widget_to_tree_coords</link></methodname>
<methodparam><parameter>wx</parameter></methodparam>
<methodparam><parameter>wy</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--tree-to-widget-coords">tree_to_widget_coords</link></methodname>
<methodparam><parameter>tx</parameter></methodparam>
<methodparam><parameter>ty</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--enable-model-drag-source">enable_model_drag_source</link></methodname>
<methodparam><parameter
role="keyword">start_button_mask</parameter></methodparam>
<methodparam><parameter
role="keyword">targets</parameter></methodparam>
<methodparam><parameter
role="keyword">actions</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--enable-model-drag-dest">enable_model_drag_dest</link></methodname>
<methodparam><parameter
role="keyword">targets</parameter></methodparam>
<methodparam><parameter
role="keyword">actions</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--unset-rows-drag-source">unset_rows_drag_source</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--unset-rows-drag-dest">unset_rows_drag_dest</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-drag-dest-row">set_drag_dest_row</link></methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter role="keyword">pos</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-drag-dest-row">get_drag_dest_row</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-dest-row-at-pos">get_dest_row_at_pos</link></methodname>
<methodparam><parameter role="keyword">x</parameter></methodparam>
<methodparam><parameter role="keyword">y</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--create-row-drag-icon">create_row_drag_icon</link></methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-enable-search">set_enable_search</link></methodname>
<methodparam><parameter
role="keyword">enable_search</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-enable-search">get_enable_search</link></methodname>
<methodparam></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-search-column">get_search_column</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-search-column">set_search_column</link></methodname>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis>
<!-- NOT IMPLEMENTED
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview- -get-search-equal-func">get_search_equal_func</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
END NOT IMPLEMENTED -->
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-search-equal-func">set_search_equal_func</link></methodname>
<methodparam><parameter role="keyword">func</parameter><initializer>None</initializer></methodparam>
<methodparam><parameter role="keyword">user_data</parameter><initializer>None</initializer></methodparam>
</methodsynopsis>
<!-- NOT IMPLEMENTED
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview- -set-destroy-count-func">set_destroy_count_func</link></methodname>
<methodparam><parameter role="keyword">func</parameter></methodparam>
<methodparam><parameter role="keyword">data</parameter></methodparam>
<methodparam><parameter role="keyword">destroy</parameter></methodparam>
</methodsynopsis>
END NOT IMPLEMENTED -->
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-fixed-height-mode">get_fixed_height_mode</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-fixed-height-mode">set_fixed_height_mode</link></methodname>
<methodparam><parameter
role="keyword">enable</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-hover-selection">get_hover_selection</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-hover-selection">set_hover_selection</link></methodname>
<methodparam><parameter
role="keyword">hover</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--get-hover-expand">get_hover_expand</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link
linkend="method-gtktreeview--set-hover-expand">set_hover_expand</link></methodname>
<methodparam><parameter
role="keyword">expand</parameter></methodparam>
</methodsynopsis>
<!-- NOT IMPLEMENTED
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview- -get-row-separator-func">get_row_separator_func</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
END NOT IMPLEMENTED -->
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-row-separator-func">set_row_separator_func</link></methodname>
<methodparam><parameter role="keyword">func</parameter><initializer>None</initializer></methodparam>
<methodparam><parameter role="keyword">user_data</parameter><initializer>None</initializer></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--get-visible-range">get_visible_range</link></methodname>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--get-headers-clickable">get_headers_clickable</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--get-search-entry">get_search_entry</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-search-entry">set_search_entry</link></methodname>
<methodparam><parameter role="keyword">entry</parameter><initializer>None</initializer></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-search-position-func">set_search_position_func</link></methodname>
<methodparam><parameter role="keyword">func</parameter></methodparam>
<methodparam><parameter role="keyword">data</parameter><initializer>None</initializer></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-rubber-banding">set_rubber_banding</link></methodname>
<methodparam><parameter role="keyword">enable</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--get-rubber-banding">get_rubber_banding</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--get-grid-lines">get_grid_lines</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-grid-lines">set_grid_lines</link></methodname>
<methodparam><parameter role="keyword">grid_lines</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--get-enable-tree-lines">get_enable_tree_lines</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-enable-tree-lines">set_enable_tree_lines</link></methodname>
<methodparam><parameter role="keyword">enabled</parameter></methodparam> </methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--convert-widget-to-bin-window-coords">convert_widget_to_bin_window_coords</link></methodname>
<methodparam><parameter role="keyword">widget_x</parameter></methodparam>
<methodparam><parameter role="keyword">widget_y</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--convert-widget-to-tree-coords">convert_widget_to_tree_coords</link></methodname>
<methodparam><parameter role="keyword">widget_x</parameter></methodparam>
<methodparam><parameter role="keyword">widget_y</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--convert-tree-to-widget-coords">convert_tree_to_widget_coords</link></methodname>
<methodparam><parameter role="keyword">tree_x</parameter></methodparam>
<methodparam><parameter role="keyword">tree_y</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--convert-tree-to-bin-window-coords">convert_tree_to_bin_window_coords</link></methodname>
<methodparam><parameter role="keyword">tree_x</parameter></methodparam>
<methodparam><parameter role="keyword">tree_y</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--convert-bin-window-to-widget-coords">convert_bin_window_to_widget_coords</link></methodname>
<methodparam><parameter role="keyword">window_x</parameter></methodparam>
<methodparam><parameter role="keyword">window_y</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--convert-bin-window-to-tree-coords">convert_bin_window_to_tree_coords</link></methodname>
<methodparam><parameter role="keyword">window_x</parameter></methodparam>
<methodparam><parameter role="keyword">window_y</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--get-level-indentation">get_level_indentation</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-level-indentation">set_level_indentation</link></methodname>
<methodparam><parameter role="keyword">indentation</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--get-show-expanders">get_show_expanders</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-show-expanders">set_show_expanders</link></methodname>
<methodparam><parameter role="keyword">enabled</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--get-tooltip-column">get_tooltip_column</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-tooltip-column">set_tooltip_column</link></methodname>
<methodparam><parameter role="keyword">column</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--is-rubber-banding-active">is_rubber_banding_active</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-tooltip-cell">set_tooltip_cell</link></methodname>
<methodparam><parameter role="keyword">tooltip</parameter></methodparam>
<methodparam><parameter role="keyword">path</parameter></methodparam>
<methodparam><parameter role="keyword">column</parameter></methodparam>
<methodparam><parameter role="keyword">cell</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtktreeview--set-tooltip-row">set_tooltip_row</link></methodname>
<methodparam><parameter role="keyword">tooltip</parameter></methodparam>
<methodparam><parameter role="keyword">path</parameter></methodparam>
</methodsynopsis>
</classsynopsis>
</refsect1>
<refsect1>
<title>Ancestry</title>
<synopsis>+-- <link linkend="class-gobject">gobject.GObject</link>
+-- <link linkend="class-gtkobject">gtk.Object</link>
+-- <link linkend="class-gtkwidget">gtk.Widget</link>
+-- <link linkend="class-gtkcontainer">gtk.Container</link>
+-- <link linkend="class-gtktreeview">gtk.TreeView</link>
</synopsis>
</refsect1>
<refsect1>
<title>Implemented Interfaces</title>
<para>
<link linkend="class-gtktreeview"><classname>gtk.TreeView</classname></link>
implements
<link linkend="class-gtkbuildable"><classname>gtk.Buildable</classname></link>
</para>
</refsect1>
<refsect1 id="properties-gtktreeview">
<title>gtk.TreeView Properties</title>
<para><link linkend="properties-gtkobject">gtk.Object Properties</link></para>
<para><link linkend="properties-gtkwidget">gtk.Widget Properties</link></para>
<para><link linkend="properties-gtkcontainer">gtk.Container Properties</link></para>
<blockquote role="properties">
<informaltable pgwide="1" frame="none">
<tgroup cols="3">
<colspec column="1" colwidth="1in"/>
<colspec column="2" colwidth="1in"/>
<colspec column="3" colwidth="4in"/>
<tbody>
<row valign="top">
<entry>"enable-grid-lines"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal> grid lines should be drawn
in the tree view</entry>
</row>
<row valign="top">
<entry>"enable-search"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal>, the user can search through
columns interactively. Default value: <literal>True</literal></entry>
</row>
<row valign="top">
<entry>"enable-tree-lines"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal> tree lines should be drawn
in the tree view</entry>
</row>
<row valign="top">
<entry>"expander-column"</entry>
<entry>Read-Write</entry>
<entry>The column for the expander</entry>
</row>
<row valign="top">
<entry>"fixed-height-mode"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal>, assume all rows have the
same height thereby speeding up display. Default value:
<literal>False</literal>. Available in GTK+ 2.4 and above.</entry>
</row>
<row valign="top">
<entry>"hadjustment"</entry>
<entry>Read-Write</entry>
<entry>The horizontal Adjustment for the widget</entry>
</row>
<row valign="top">
<entry>"headers-clickable"</entry>
<entry>Write</entry>
<entry>If <literal>True</literal>, the column headers respond
to click events. Default value: <literal>False</literal></entry>
</row>
<row valign="top">
<entry>"headers-visible"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal>, show the column header
buttons. Default value: <literal>True</literal></entry>
</row>
<row valign="top">
<entry>"hover-expand"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal>, rows expand or collapse if
the pointer moves over them. This mode is primarily intended for treeviews
in popups, e.g. in <link
linkend="class-gtkcombobox"><classname>gtk.ComboBox</classname></link> or
<link
linkend="class-gtkentrycompletion"><classname>gtk.EntryCompletion</classname></link>. Default
value: <literal>False</literal>. Available in GTK+ 2.6 and above.</entry>
</row>
<row valign="top">
<entry>"hover-selection"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal>, the selected row follows
the pointer. Currently, this works only for the selection modes
<literal>gtk.SELECTION_SINGLE</literal> and
<literal>gtk.SELECTION_BROWSE</literal>. This mode is primarily intended for
treeviews in popups, e.g. in <link
linkend="class-gtkcombobox"><classname>gtk.ComboBox</classname></link> or
<link
linkend="class-gtkentrycompletion"><classname>gtk.EntryCompletion</classname></link>. Default
value: <literal>False</literal>. Available in GTK+ 2.6 and above.</entry>
</row>
<row valign="top">
<entry>"level-indentation"</entry>
<entry>Read-Write</entry>
<entry>Extra indentation for each level</entry>
</row>
<row valign="top">
<entry>"model"</entry>
<entry>Read-Write</entry>
<entry>The model for the tree view</entry>
</row>
<row valign="top">
<entry>"reorderable"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal>, the view is
reorderable. Default value: <literal>False</literal>.</entry>
</row>
<row valign="top">
<entry>"rubber-banding"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal> enable selection of multiple
items by dragging the mouse pointer</entry>
</row>
<row valign="top">
<entry>"rules-hint"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal>, hint to the theme engine to
draw rows in alternating colors. Default value:
<literal>False</literal>.</entry>
</row>
<row valign="top">
<entry>"search-column"</entry>
<entry>Read-Write</entry>
<entry>The model column to search when searching through
code. Allowed values: >= -1. Default value: -1</entry>
</row>
<row valign="top">
<entry>"show-expanders"</entry>
<entry>Read-Write</entry>
<entry>View has expanders</entry>
</row>
<row valign="top">
<entry>"vadjustment"</entry>
<entry>Read-Write</entry>
<entry>The vertical Adjustment for the widget</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</blockquote>
</refsect1>
<refsect1 id="style-properties-gtktreeview">
<title>gtk.TreeView Style Properties</title>
<blockquote role="properties">
<informaltable pgwide="1" frame="none">
<tgroup cols="3">
<colspec column="1" colwidth="1in"/>
<colspec column="2" colwidth="1in"/>
<colspec column="3" colwidth="4in"/>
<tbody>
<row valign="top">
<entry>"allow-rules"</entry>
<entry>Read</entry>
<entry>If <literal>True</literal>, allow drawing of
alternating color rows. Default value: <literal>True</literal></entry>
</row>
<row valign="top">
<entry>"even-row-color"</entry>
<entry>Read</entry>
<entry>The <link
linkend="class-gdkcolor"><classname>gtk.gdk.Color</classname></link>
to use for even rows. Available in GTK+ 2.2 and above.</entry>
</row>
<row valign="top">
<entry>"expander-size"</entry>
<entry>Read</entry>
<entry>The size of the expander arrow. Allowed values: >= 0.
Default value: 12</entry>
</row>
<row valign="top">
<entry>"grid-line-pattern"</entry>
<entry>Read</entry>
<entry>Dash pattern used to draw the tree view grid lines</entry>
</row>
<row valign="top">
<entry>"grid-line-width"</entry>
<entry>Read</entry>
<entry>Width, in pixels, of the tree view grid lines</entry>
</row>
<row valign="top">
<entry>"horizontal-separator"</entry>
<entry>Read</entry>
<entry>The horizontal space between cells. Must be an even
number. Allowed values: >= 0. Default value: 2</entry>
</row>
<row valign="top">
<entry>"indent-expanders"</entry>
<entry>Read</entry>
<entry>If <literal>True</literal>, the expanders are
indented.</entry>
</row>
<row valign="top">
<entry>"odd-row-color"</entry>
<entry>Read</entry>
<entry>The <link
linkend="class-gdkcolor"><classname>gtk.gdk.Color</classname></link>
to use for odd rows. Available in GTK+ 2.2 and above.</entry>
</row>
<row valign="top">
<entry>"row-ending-details"</entry>
<entry>Read</entry>
<entry>Enable extended row background theming</entry>
</row>
<row valign="top">
<entry>"tree-line-pattern"</entry>
<entry>Read</entry>
<entry>Dash pattern used to draw the tree view lines</entry>
</row>
<row valign="top">
<entry>"tree-line-width"</entry>
<entry>Read</entry>
<entry>Width, in pixels, of the tree view lines</entry>
</row>
<row valign="top">
<entry>"vertical-separator"</entry>
<entry>Read</entry>
<entry>The vertical space between cells. Must be an even
number. Allowed values: >= 0. Default value: 2</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</blockquote>
</refsect1>
<refsect1 id="signal-prototypes-gtktreeview">
<title>gtk.TreeView Signal Prototypes</title>
<para><link linkend="signal-prototypes-gobject">gobject.GObject Signal Prototypes</link></para>
<para><link linkend="signal-prototypes-gtkobject">gtk.Object Signal Prototypes</link></para>
<para><link linkend="signal-prototypes-gtkwidget">gtk.Widget Signal Prototypes</link></para>
<para><link linkend="signal-prototypes-gtkcontainer">gtk.Container Signal Prototypes</link></para>
<variablelist>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--columns-changed">columns-changed</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--cursor-changed">cursor-changed</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--expand-collapse-cursor-row">expand-collapse-cursor-row</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>logical</parameter></methodparam>
<methodparam><parameter>expand</parameter></methodparam>
<methodparam><parameter>open_all</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--move-cursor">move-cursor</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>step</parameter></methodparam>
<methodparam><parameter>count</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--row-activated">row-activated</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>path</parameter></methodparam>
<methodparam><parameter>view_column</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--row-collapsed">row-collapsed</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>iter</parameter></methodparam>
<methodparam><parameter>path</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--row-expanded">row-expanded</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>iter</parameter></methodparam>
<methodparam><parameter>path</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--select-all">select-all</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--select-cursor-parent">select-cursor-parent</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--select-cursor-row">select-cursor-row</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>start_editing</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--set-scroll-adjustments">set-scroll-adjustments</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>hadjustment</parameter></methodparam>
<methodparam><parameter>vadjustment</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--start-interactive-search">start-interactive-search</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--test-collapse-row">test-collapse-row</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>iter</parameter></methodparam>
<methodparam><parameter>path</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--test-expand-row">test-expand-row</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>iter</parameter></methodparam>
<methodparam><parameter>path</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--toggle-cursor-row">toggle-cursor-row</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
<varlistentry>
<term>"<link linkend="signal-gtktreeview--unselect-all">unselect-all</link>"</term>
<listitem>
<methodsynopsis language="python"><methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Description</title>
<para>A <link
linkend="class-gtktreeview"><classname>gtk.TreeView</classname></link>
widget is used to display the contents of any model implementing the <link
linkend="class-gtktreemodel"><classname>gtk.TreeModel</classname></link>
interface. The tree models provided standard with <literal>GTK+</literal>
and <literal>PyGTK</literal> are:</para>
<itemizedlist>
<listitem>
<simpara><link
linkend="class-gtkliststore"><classname>gtk.ListStore</classname></link></simpara>
</listitem>
<listitem>
<simpara><link
linkend="class-gtktreestore"><classname>gtk.TreeStore</classname></link></simpara>
</listitem>
<listitem>
<simpara><link
linkend="class-gtktreemodelsort"><classname>gtk.TreeModelSort</classname></link></simpara>
</listitem>
</itemizedlist>
<para>In addition, <literal>PyGTK</literal> provides <link
linkend="class-pygtkgenerictreemodel"><classname>gtk.GenericTreeModel</classname></link>
that allows you to create your own tree model entirely in Python.</para>
<para>The <link
linkend="class-gtktreeview"><classname>gtk.TreeView</classname></link> uses
columns and cell renderers to actually display the model information.
<literal>GTK+</literal> and <literal>PyGTK</literal> provides the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
to manage the display of a column and the following cell renderers:</para>
<itemizedlist>
<listitem>
<simpara><link
linkend="class-gtkcellrendererpixbuf"><classname>gtk.CellRendererPixbuf</classname></link></simpara>
</listitem>
<listitem>
<simpara><link
linkend="class-gtkcellrenderertext"><classname>gtk.CellRendererText</classname></link></simpara>
</listitem>
<listitem>
<simpara><link
linkend="class-gtkcellrenderertoggle"><classname>gtk.CellRendererToggle</classname></link></simpara>
</listitem>
</itemizedlist>
<para>In addition, <literal>PyGTK</literal> provides the <link
linkend="class-pygtkgenericcellrenderer"><classname>gtk.GenericCellRenderer</classname></link>
that allows you to create your own cell renderers entirely in Python.</para>
</refsect1>
<refsect1 id="constructor-gtktreeview">
<title>Constructor</title>
<programlisting><constructorsynopsis language="python">
<methodname>gtk.TreeView</methodname>
<methodparam><parameter role="keyword">model</parameter>
<initializer>None</initializer></methodparam>
</constructorsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">model</parameter> :</term>
<listitem><simpara>the tree model to display</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>A new <link
linkend="class-gtktreeview"><classname>gtk.TreeView</classname></link>
widget.</simpara></listitem>
</varlistentry>
</variablelist>
<para>Creates a new <link
linkend="class-gtktreeview"><classname>gtk.TreeView</classname></link>
widget displaying the model specified by <parameter>model</parameter>.</para>
</refsect1>
<refsect1>
<title>Methods</title>
<refsect2 id="method-gtktreeview--get-model">
<title>gtk.TreeView.get_model</title>
<programlisting><methodsynopsis language="python">
<methodname>get_model</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the current <link
linkend="class-gtktreemodel"><classname>gtk.TreeModel</classname></link>, or
<literal>None</literal> if none is currently being
used.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_model</methodname>() method returns the
value of the "model" property containing the model the <link
linkend="class-gtktreeview"><classname>gtk.TreeView</classname></link> is
displaying or <literal>None</literal> there is no the model.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-model">
<title>gtk.TreeView.set_model</title>
<programlisting><methodsynopsis language="python">
<methodname>set_model</methodname>
<methodparam><parameter role="keyword">model</parameter>
<initializer>None</initializer></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">model</parameter> :</term>
<listitem><simpara>the new tree model to use with the
treeview</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_model</methodname>() method sets the "model"
property for the treeview to the value of <parameter>model</parameter>. If
the treeview already has a model set, this method will remove it before
setting the new model. If <parameter>model</parameter> is
<literal>None</literal>, it will unset the old model.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-selection">
<title>gtk.TreeView.get_selection</title>
<programlisting><methodsynopsis language="python">
<methodname>get_selection</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>A <link
linkend="class-gtktreeselection"><classname>gtk.TreeSelection</classname></link>
object.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_selection</methodname>() method returns the
current <link
linkend="class-gtktreeselection"><classname>gtk.TreeSelection</classname></link>
associated with the treeview.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-hadjustment">
<title>gtk.TreeView.get_hadjustment</title>
<programlisting><methodsynopsis language="python">
<methodname>get_hadjustment</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a <link
linkend="class-gtkadjustment"><classname>gtk.Adjustment</classname></link>
object, or <literal>None</literal> if none is currently being
used.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_hadjustment</methodname>() method returns
the value of the "hadjustment" property that contains the current horizontal
<link
linkend="class-gtkadjustment"><classname>gtk.Adjustment</classname></link>
object or <literal>None</literal> (if no horizontal adjustment is being
used).</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-hadjustment">
<title>gtk.TreeView.set_hadjustment</title>
<programlisting><methodsynopsis language="python">
<methodname>set_hadjustment</methodname>
<methodparam><parameter
role="keyword">adjustment</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter
role="keyword">adjustment</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtkadjustment"><classname>gtk.Adjustment</classname></link>
to set</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_hadjustment</methodname>() method sets the
"hadjustment" property to the value of <parameter>adjustment</parameter>
that must be a <link
linkend="class-gtkadjustment"><classname>gtk.Adjustment</classname></link>
object.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-vadjustment">
<title>gtk.TreeView.get_vadjustment</title>
<programlisting><methodsynopsis language="python">
<methodname>get_vadjustment</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a <link
linkend="class-gtkadjustment"><classname>gtk.Adjustment</classname></link>
object, or <literal>None</literal> if none is currently being
used.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_vadjustment</methodname>() method returns
the value of the "vadjustment" property that contains the horizontal <link
linkend="class-gtkadjustment"><classname>gtk.Adjustment</classname></link>
or None if there is no vertical adjustment.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-vadjustment">
<title>gtk.TreeView.set_vadjustment</title>
<programlisting><methodsynopsis language="python">
<methodname>set_vadjustment</methodname>
<methodparam><parameter
role="keyword">adjustment</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter
role="keyword">adjustment</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtkadjustment"><classname>gtk.Adjustment</classname></link>
to set</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_vadjustment</methodname>() method sets the
"vadjustment" property to the value of <parameter>adjustment</parameter>.
The new <link
linkend="class-gtkadjustment"><classname>gtk.Adjustment</classname></link>
replaces the current vertical adjustment.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-headers-visible">
<title>gtk.TreeView.get_headers_visible</title>
<programlisting><methodsynopsis language="python">
<methodname>get_headers_visible</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the headers are
visible.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_headers_visible</methodname>() method
returns the value of the "headers-visible" property. If "headers-visible" is
<literal>True</literal> the headers on the treeview are visible.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-headers-visible">
<title>gtk.TreeView.set_headers_visible</title>
<programlisting><methodsynopsis language="python">
<methodname>set_headers_visible</methodname>
<methodparam><parameter
role="keyword">headers_visible</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter
role="keyword">headers_visible</parameter> :</term>
<listitem><simpara>if <literal>True</literal> the headers are
visible</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_headers_visible</methodname>() method sets
the "headers-visible" property to the value of
<parameter>headers_visible</parameter>. If
<parameter>headers_visible</parameter> is <literal>True</literal> the
headers will be displayed.</para>
</refsect2>
<refsect2 id="method-gtktreeview--columns-autosize">
<title>gtk.TreeView.columns_autosize</title>
<programlisting><methodsynopsis language="python">
<methodname>columns_autosize</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<para>The <methodname>columns_autosize</methodname>() method resizes
all columns to their optimal width. Only works after the treeview has been
realized.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-headers-clickable">
<title>gtk.TreeView.set_headers_clickable</title>
<programlisting><methodsynopsis language="python">
<methodname>set_headers_clickable</methodname>
<methodparam><parameter
role="keyword">active</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">active</parameter> :</term>
<listitem><simpara>if <literal>True</literal> the headers are
clickable</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_headers_clickable</methodname>() method sets
the "headers-clickable" property to the value of
<parameter>active</parameter>. If <parameter>active</parameter> is
<literal>True</literal> the column title buttons can be clicked.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-rules-hint">
<title>gtk.TreeView.set_rules_hint</title>
<programlisting><methodsynopsis language="python">
<methodname>set_rules_hint</methodname>
<methodparam><parameter
role="keyword">setting</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">setting</parameter> :</term>
<listitem><simpara>if <literal>True</literal> the tree requires
reading across rows</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_rules_hint</methodname>() method sets the
"rules-hint" property to the value of <parameter>setting</parameter>. If
<parameter>setting</parameter> is <literal>True</literal> it indicates that
the user interface for your application requires users to read across tree
rows and associate cells with one another. By default, the tree will be
rendered with alternating row colors. Do <emphasis>not</emphasis> use it
just because you prefer the appearance of the ruled tree; that's a question
for the theme. Some themes will draw tree rows in alternating colors even
when rules are turned off, and users who prefer that appearance all the time
can choose those themes. You should call this method only as a
<emphasis>semantic</emphasis> hint to the theme engine that your tree makes
alternating colors useful from a functional standpoint (since it has lots of
columns, generally).</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-rules-hint">
<title>gtk.TreeView.get_rules_hint</title>
<programlisting><methodsynopsis language="python">
<methodname>get_rules_hint</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if rules are useful for
the user of this tree</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_rules_hint</methodname>() returns the value
of the "rules-hint" property. See the <link
linkend="method-gtktreeview--set-rules-hint"><methodname>set_rules_hint</methodname>()</link>
method for more information on the use of "rules-hint".</para>
</refsect2>
<refsect2 id="method-gtktreeview--append-column">
<title>gtk.TreeView.append_column</title>
<programlisting><methodsynopsis language="python">
<methodname>append_column</methodname>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">column</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
to add.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the number of columns in
<parameter>tree_view</parameter> after appending.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>append_column</methodname>() method appends the
specified <parameter>column</parameter> to the list of columns and returns
the new number of columns in the treeview.</para>
</refsect2>
<refsect2 id="method-gtktreeview--remove-column">
<title>gtk.TreeView.remove_column</title>
<programlisting><methodsynopsis language="python">
<methodname>remove_column</methodname>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">column</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
to remove.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the number of columns in the treeview after the
column removal.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>remove_column</methodname>() method removes the
specified <parameter>column</parameter> from the treeview.</para>
</refsect2>
<refsect2 id="method-gtktreeview--insert-column">
<title>gtk.TreeView.insert_column</title>
<programlisting><methodsynopsis language="python">
<methodname>insert_column</methodname>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
<methodparam><parameter
role="keyword">position</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">column</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
to be inserted.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">position</parameter> :</term>
<listitem><simpara>the position to insert
<parameter>column</parameter>.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the number of columns in the treeview after the
insertion.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>insert_column</methodname>() method inserts the
specified <parameter>column</parameter> into the treeview at the location
specified by <parameter>position</parameter>. If
<parameter>position</parameter> is -1, then the column is inserted at the
end.</para>
</refsect2>
<refsect2 id="method-gtktreeview--insert-column-with-attributes">
<title>gtk.TreeView.insert_column_with_attributes</title>
<programlisting><methodsynopsis language="python">
<methodname>insert_column_with_attributes</methodname>
<methodparam><parameter>position</parameter></methodparam>
<methodparam><parameter>title</parameter></methodparam>
<methodparam><parameter>cell</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>position</parameter> :</term>
<listitem><simpara>the position to insert the new column
in.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>title</parameter> :</term>
<listitem><simpara>the title to set the header
to.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>cell</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtkcellrenderer"><classname>gtk.CellRenderer</classname></link>.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>optional keyword-value
arguments</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
that was inserted.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>insert_column_with_attributes</methodname>()
method creates a new <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
and inserts it into the treeview at the location specified by
<parameter>position</parameter> with the column title specified by
<parameter>title</parameter> and using the <link
linkend="class-gtkcellrenderer"><classname>gtk.CellRenderer</classname></link>
specified by <parameter>cell</parameter>. If <parameter>position</parameter>
is -1, then the newly created column is inserted at the end. The column is
initialized with the optional attributes passed as keyword-value pairs (e.g.
text=0, foreground=2). See the <link
linkend="method-gtktreeviewcolumn--add-attribute"><methodname>gtk.TreeViewColumn.add_attribute</methodname>()</link>
method for more information.</para>
</refsect2>
<refsect2 id="method-gtktreeview--insert-column-with-data-func">
<title>gtk.TreeView.insert_column_with_data_func</title>
<programlisting><methodsynopsis language="python">
<methodname>insert_column_with_data_func</methodname>
<methodparam><parameter>position</parameter></methodparam>
<methodparam><parameter>title</parameter></methodparam>
<methodparam><parameter>cell</parameter></methodparam>
<methodparam><parameter>func</parameter></methodparam>
<methodparam><parameter>data</parameter>
<initializer>None</initializer></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>position</parameter> :</term>
<listitem><simpara>the position to insert, -1 for
append</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>title</parameter> :</term>
<listitem><simpara>the column title</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>cell</parameter> :</term>
<listitem><simpara>a cell renderer for the
column</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>func</parameter> :</term>
<listitem><simpara>the function or method to set attributes of the
cell renderer</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>data</parameter> :</term>
<listitem><simpara>the data to pass with
<parameter>func</parameter></simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the number of columns in the treeview after the
insertion</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>insert_column_with_data_func</methodname>()
method is a convenience function that inserts a new column into the treeview
at the location specified by <parameter>position</parameter> with the
specified <parameter>title</parameter> and the cell renderer specified by
<parameter>cell</parameter> and using the function or method specified by
<parameter>func</parameter> to set cell renderer attributes (normally using
data from the model). The signature of func is:</para>
<programlisting>
<methodsynopsis language="python">
<methodname>celldatafunction</methodname>
<methodparam><parameter>column</parameter></methodparam>
<methodparam><parameter>cell</parameter></methodparam>
<methodparam><parameter>model</parameter></methodparam>
<methodparam><parameter>iter</parameter></methodparam>
<methodparam><parameter>user_data</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
<methodname>celldatamethod</methodname>
<methodparam><parameter>self</parameter></methodparam>
<methodparam><parameter>column</parameter></methodparam>
<methodparam><parameter>cell</parameter></methodparam>
<methodparam><parameter>model</parameter></methodparam>
<methodparam><parameter>iter</parameter></methodparam>
<methodparam><parameter>user_data</parameter></methodparam>
</methodsynopsis>
</programlisting>
<para>where <parameter>column</parameter> is the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
in the treeview, <parameter>cell</parameter> is the <link
linkend="class-gtkcellrenderer"><classname>gtk.CellRenderer</classname></link>
for <parameter>column</parameter>, <parameter>model</parameter> is the <link
linkend="class-gtktreemodel"><classname>gtk.TreeModel</classname></link> for
the treeview and <parameter>iter</parameter> is the <link
linkend="class-gtktreeiter"><classname>gtk.TreeIter</classname></link>
pointing at the row. See the <link
linkend="method-gtktreeviewcolumn--set-cell-data-func"><methodname>gtk.TreeViewColumn.set_cell_data_func</methodname>()</link>
and <link
linkend="method-gtktreeviewcolumn--pack-start"><methodname>gtk.TreeViewColumn.pack_start</methodname>()</link>
methods for more detail.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-column">
<title>gtk.TreeView.get_column</title>
<programlisting><methodsynopsis language="python">
<methodname>get_column</methodname>
<methodparam><parameter role="keyword">n</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">n</parameter> :</term>
<listitem><simpara>the position of the column, counting from
0.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>,
or <literal>None</literal> if the position is outside the range of
columns.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_column</methodname>() method returns the
<link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
at the specified <parameter>position</parameter> in the treeview.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-columns">
<title>gtk.TreeView.get_columns</title>
<programlisting><methodsynopsis language="python">
<methodname>get_columns</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a list of <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
s</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_columns</methodname>() method returns a list
of all the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
objects currently in the treeview.</para>
</refsect2>
<refsect2 id="method-gtktreeview--move-column-after">
<title>gtk.TreeView.move_column_after</title>
<programlisting><methodsynopsis language="python">
<methodname>move_column_after</methodname>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
<methodparam><parameter
role="keyword">base_column</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">column</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
to be moved.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter
role="keyword">base_column</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
<parameter>column</parameter> is to be after, or
<literal>None</literal>.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>move_column_after</methodname>() method moves
the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
specified by <parameter>column</parameter> to be after the treeview column
specified by <parameter>base_column</parameter>. If
<parameter>base_column</parameter> is <literal>None</literal>, then
<parameter>column</parameter> is placed in the first position.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-expander-column">
<title>gtk.TreeView.set_expander_column</title>
<programlisting><methodsynopsis language="python">
<methodname>set_expander_column</methodname>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">column</parameter> :</term>
<listitem><simpara>the column to draw the expander arrow at
or<literal>None</literal>.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_expander_column</methodname>() method sets
the "expander-column" property to the value of <parameter>column</parameter>
which must be a <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
in the treeview. If <parameter>column</parameter> is
<literal>None</literal>, then the expander arrow is always at the first
visible column.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-expander-column">
<title>gtk.TreeView.get_expander_column</title>
<programlisting><methodsynopsis language="python">
<methodname>get_expander_column</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the expander column.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_expander_column</methodname>() method
returns the value of the "expander-column" property that contains the
current expander column i.e. the column that has the expander arrow drawn
next to it.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-column-drag-function">
<title>gtk.TreeView.set_column_drag_function</title>
<programlisting><methodsynopsis language="python">
<methodname>set_column_drag_function</methodname>
<methodparam><parameter role="keyword">func</parameter></methodparam>
<methodparam><parameter role="keyword">user_data</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">func</parameter> :</term>
<listitem><simpara>A function to determine which columns are reorderable, or <literal>None</literal>.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">user_data</parameter> :</term>
<listitem><simpara>User data to be passed to <parameter>func</parameter>, or <literal>None</literal></simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.4 and above.</para>
</note>
<para>The <methodname>set_column_drag_function</methodname>() method
sets the user function specified by <parameter>func</parameter> for
determining where a column may be dropped when dragged. The user function is
called on every column pair in turn at the beginning of a column drag to
determine where a drop can take place. The signature of
<parameter>func</parameter> is:</para>
<programlisting>
def func(<parameter>tree_view</parameter>, <parameter>column</parameter>, <parameter>prev_column</parameter>, <parameter>next_column</parameter>, <parameter>data</parameter>)
</programlisting>
<para>where <parameter>tree_view</parameter> is the <link
linkend="class-gtktreeview"><classname>gtk.TreeView</classname></link>,
<parameter>column</parameter> is the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
being dragged, prev_column and next_column are the two <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
objects bracketing the drop spot, and <parameter>data</parameter> is
<parameter>user_data</parameter>. If <parameter>prev_column</parameter> or
<parameter>next_column</parameter> is <literal>None</literal>, then the drop
is at an edge. If <parameter>func</parameter> is <literal>None</literal>,
the user drag function is removed and the <link
linkend="class-gtktreeview"><classname>gtk.TreeView</classname></link>
reverts to the default behavior of allowing any reorderable column to be
dropped anywhere.</para>
</refsect2>
<refsect2 id="method-gtktreeview--scroll-to-point">
<title>gtk.TreeView.scroll_to_point</title>
<programlisting><methodsynopsis language="python">
<methodname>scroll_to_point</methodname>
<methodparam><parameter
role="keyword">tree_x</parameter></methodparam>
<methodparam><parameter
role="keyword">tree_y</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">tree_x</parameter> :</term>
<listitem><simpara>the X coordinate of new top-left pixel of
visible area, or -1</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">tree_y</parameter> :</term>
<listitem><simpara>the Y coordinate of new top-left pixel of
visible area, or -1</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>scroll_to_point</methodname>() method scrolls
the treeview so that the top-left corner of the visible area is at the
location specified by <parameter>tree_x</parameter> and
<parameter>tree_y</parameter>, where <parameter>tree_x</parameter> and
<parameter>tree_y</parameter> are specified in tree window coordinates. The
treeview must be realized before this method is called. If it isn't, you
should use the <link
linkend="method-gtktreeview--scroll-to-cell"><methodname>scroll_to_cell</methodname>()</link>
method instead. If either <parameter>tree_x</parameter> or
<parameter>tree_y</parameter> are -1, there is no scrolling in that
direction.</para>
</refsect2>
<refsect2 id="method-gtktreeview--scroll-to-cell">
<title>gtk.TreeView.scroll_to_cell</title>
<programlisting><methodsynopsis language="python">
<methodname>scroll_to_cell</methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter role="keyword">column</parameter>
<initializer>None</initializer></methodparam>
<methodparam><parameter role="keyword">use_align</parameter>
<initializer>False</initializer></methodparam>
<methodparam><parameter role="keyword">row_align</parameter>
<initializer>0.0</initializer></methodparam>
<methodparam><parameter role="keyword">col_align</parameter>
<initializer>0.0</initializer></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">path</parameter> :</term>
<listitem><simpara>the path of the row to move
to</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">column</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
to move horizontally to, or <literal>None</literal>.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter
role="keyword">use_align</parameter> :</term>
<listitem><simpara>if <literal>True</literal> use the alignment
arguments</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter
role="keyword">row_align</parameter> :</term>
<listitem><simpara>the vertical alignment of the row specified by
<parameter>path</parameter>.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter
role="keyword">col_align</parameter> :</term>
<listitem><simpara>the horizontal alignment of the column
specified by <parameter>column</parameter>.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>scroll_to_cell</methodname>() method scrolls the
treeview display to the position specified by <parameter>column</parameter>
and <parameter>path</parameter>. If <parameter>column</parameter> is
<literal>None</literal>, no horizontal scrolling occurs. The alignment
parameters specified by <parameter>row_align</parameter> and
<parameter>col_align</parameter> determines where
<parameter>column</parameter> is placed within the treeview. The values of
<parameter>col_align</parameter> and <parameter>row_align</parameter> range
from 0.0 to 1.0. The alignment values specify the fraction of display space
that is to the left of or above the cell. If
<parameter>use_align</parameter> is <literal>False</literal>, the alignment
arguments are ignored, and the tree does the minimum amount of work to
scroll the cell onto the screen. This means that the cell will be scrolled
to the edge closest to it's current position. If the cell is currently
visible on the screen, nothing is done. This method only works if the model
is set, and <parameter>path</parameter> is a valid row in the model.</para>
</refsect2>
<refsect2 id="method-gtktreeview--row-activated">
<title>gtk.TreeView.row_activated</title>
<programlisting><methodsynopsis language="python">
<methodname>row_activated</methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">path</parameter> :</term>
<listitem><simpara>the tree path of the row of the cell to be
activated.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">column</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
of the cell to be activated.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>row_activated</methodname>() method activates
the cell determined by <parameter>path</parameter> and
<parameter>column</parameter>.</para>
</refsect2>
<refsect2 id="method-gtktreeview--expand-all">
<title>gtk.TreeView.expand_all</title>
<programlisting><methodsynopsis language="python">
<methodname>expand_all</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<para>The <methodname>expand_all</methodname>() method recursively
expands all nodes in the treeview.</para>
</refsect2>
<refsect2 id="method-gtktreeview--collapse-all">
<title>gtk.TreeView.collapse_all</title>
<programlisting><methodsynopsis language="python">
<methodname>collapse_all</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<para>The <methodname>collapse_all</methodname>() method recursively
collapses all visible, expanded nodes in the treeview.</para>
</refsect2>
<refsect2 id="method-gtktreeview--expand-to-path">
<title>gtk.TreeView.expand_to_path</title>
<programlisting><methodsynopsis language="python">
<methodname>expand_to_path</methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>path</parameter> :</term>
<listitem><simpara>a path to a row.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.2 and above.</para>
</note>
<para>The <methodname>expand_to_row</methodname>() method expands the
row with the tree path specified by <parameter>path</parameter>. This will
also expand all parent rows of <parameter>path</parameter> as
necessary.</para>
</refsect2>
<refsect2 id="method-gtktreeview--expand-row">
<title>gtk.TreeView.expand_row</title>
<programlisting><methodsynopsis language="python">
<methodname>expand_row</methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter
role="keyword">open_all</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">path</parameter> :</term>
<listitem><simpara>the path to a row</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">open_all</parameter> :</term>
<listitem><simpara>if <literal>True</literal> recursively expand,
otherwise just expand immediate children</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>expand_row</methodname>() method opens the row
specified by <parameter>path</parameter> so its children are visible. If
<parameter>open_all</parameter> is <literal>True</literal> all rows are
expanded, otherwise only the immediate children of
<parameter>path</parameter> are expanded.</para>
</refsect2>
<refsect2 id="method-gtktreeview--collapse-row">
<title>gtk.TreeView.collapse_row</title>
<programlisting><methodsynopsis language="python">
<methodname>collapse_row</methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">path</parameter> :</term>
<listitem><simpara>the path to a row</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>collapse_row</methodname>() method collapses the
row specified by <parameter>path</parameter> (hides its child rows, if they
exist).</para>
</refsect2>
<refsect2 id="method-gtktreeview--map-expanded-rows">
<title>gtk.TreeView.map_expanded_rows</title>
<programlisting><methodsynopsis language="python">
<methodname>map_expanded_rows</methodname>
<methodparam><parameter role="keyword">func</parameter></methodparam>
<methodparam><parameter role="keyword">data</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">func</parameter> :</term>
<listitem><simpara>A function to be called</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">data</parameter> :</term>
<listitem><simpara>User data to be passed to the function.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.2 and above.</para>
</note>
<para>The <methodname>map_expanded_rows</methodname>() method calls
the function specified by <parameter>func</parameter> on all expanded rows
passing <parameter>data</parameter> as an argument.</para>
</refsect2>
<refsect2 id="method-gtktreeview--row-expanded">
<title>gtk.TreeView.row_expanded</title>
<programlisting><methodsynopsis language="python">
<methodname>row_expanded</methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">path</parameter> :</term>
<listitem><simpara>the path to a row to test the expansion
state.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if
<literal>path</literal> is expanded.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>row_expanded</methodname>() method returns
<literal>True</literal> if the node pointed to by
<parameter>path</parameter> is expanded.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-reorderable">
<title>gtk.TreeView.set_reorderable</title>
<programlisting><methodsynopsis language="python">
<methodname>set_reorderable</methodname>
<methodparam><parameter
role="keyword">reorderable</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter
role="keyword">reorderable</parameter> :</term>
<listitem><simpara>if <literal>True</literal>, the tree can be
reordered.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_reorderable</methodname>() method sets the
"reorderable" property to the value of <parameter>reorderable</parameter>.
This method is a convenience method to allow you to reorder models that
support the <link
linkend="class-gtktreedragsource"><classname>gtk.TreeDragSource</classname></link>
and the <link
linkend="class-gtktreedragdest"><classname>gtk.TreeDragDest</classname></link>
interfaces. Both <link
linkend="class-gtktreestore"><classname>gtk.TreeStore</classname></link> and
<link
linkend="class-gtkliststore"><classname>gtk.ListStore</classname></link>
support these. If <parameter>reorderable</parameter> is
<literal>True</literal>, then the user can reorder the model by dragging and
dropping rows. The application can listen to these changes by connecting to
the model's signals.</para>
<note>
<para>This function does not give you any degree of control over the
order -- any reordering is allowed. If more control is needed, you should
probably handle drag and drop manually.</para>
</note>
</refsect2>
<refsect2 id="method-gtktreeview--get-reorderable">
<title>gtk.TreeView.get_reorderable</title>
<programlisting><methodsynopsis language="python">
<methodname>get_reorderable</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the tree can be
reordered.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_reorderable</methodname>() method returns
the value of the "reorderable" property that determines if the user can
reorder the tree via drag-and-drop. See the <link
linkend="method-gtktreeview--set-reorderable"><methodname>set_reorderable</methodname>()</link>
method for more information.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-cursor">
<title>gtk.TreeView.set_cursor</title>
<programlisting><methodsynopsis language="python">
<methodname>set_cursor</methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter
role="keyword">focus_column</parameter><initializer>None</initializer></methodparam>
<methodparam><parameter
role="keyword">start_editing</parameter><initializer>False</initializer></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">path</parameter> :</term>
<listitem><simpara>a tree path</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter
role="keyword">focus_column</parameter> :</term>
<listitem><simpara>a <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>,
or <literal>None</literal></simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter
role="keyword">start_editing</parameter> :</term>
<listitem><simpara><literal>if True</literal> the specified cell
should start being edited.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_cursor</methodname>() method sets the
current keyboard focus to be at the row specified by
<parameter>path</parameter>, and selects it. This is useful when you want to
focus the user's attention on a particular row. If
<parameter>column</parameter> is not <literal>None</literal>, then focus is
given to the specified column. Additionally, if
<parameter>column</parameter> is specified, and
<parameter>start_editing</parameter> is <literal>True</literal>, then
editing should be started in the specified cell. This method is often
followed by the <link
linkend="method-gtkwidget--grab-focus"><methodname>gtk.Widget.grab_focus</methodname>()</link>
method to give keyboard focus to the treeview. Please note that editing can
only happen when the widget is realized.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-cursor-on-cell">
<title>gtk.TreeView.set_cursor_on_cell</title>
<programlisting><methodsynopsis language="python">
<methodname>set_cursor_on_cell</methodname>
<methodparam><parameter role="keyword">path</parameter></methodparam>
<methodparam><parameter role="keyword">focus_column</parameter><initializer>None</initializer></methodparam>
<methodparam><parameter role="keyword">focus_cell</parameter><initializer>None</initializer></methodparam>
<methodparam><parameter role="keyword">start_editing</parameter><initializer>False</initializer></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>path</parameter> :</term>
<listitem><simpara>a tree path</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>focus_column</parameter> :</term>
<listitem><simpara>a <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>,
or <literal>None</literal></simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>focus_cell</parameter> :</term>
<listitem><simpara>a <link
linkend="class-gtkcellrenderer"><classname>gtk.CellRenderer</classname></link>,
or <literal>None</literal></simpara></listitem> </varlistentry>
<varlistentry>
<term><parameter>start_editing</parameter> :</term>
<listitem><simpara><literal>True</literal> if the specified cell
should start being edited.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.2 and above.</para>
</note>
<para>The <methodname>set_cursor_on_cell</methodname>() method sets
the current keyboard focus to be at the node specified by
<parameter>path</parameter>, and selects it. This is useful when you want
to focus the user's attention on a particular row. If
<parameter>focus_column</parameter> is specified, focus is given to that
column. If <parameter>focus_column</parameter> and
<parameter>focus_cell</parameter> are specified, and
<parameter>focus_column</parameter> contains 2 or more editable or
activatable cells, then focus is given to the cell specified by
<parameter>focus_cell</parameter>. Additionally, if
<parameter>focus_column</parameter> is specified, and
<parameter>start_editing</parameter> is <literal>True</literal>, editing
should be started in the specified cell. This method is often followed by
the <link
linkend="method-gtkwidget--grab-focus"><methodname>gtk.Widget.grab_focus</methodname>()</link>
method in order to give keyboard focus to the widget. Please note that
editing can only happen when the widget is realized.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-cursor">
<title>gtk.TreeView.get_cursor</title>
<programlisting><methodsynopsis language="python">
<methodname>get_cursor</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a tuple containing the current cursor path and
focus column.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_cursor</methodname>() method returns a tuple
containing the current path and focus column. If the cursor isn't currently
set, the current path will be <literal>None</literal>. If no column
currently has focus, the current focus column will be
<literal>None</literal>.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-bin-window">
<title>gtk.TreeView.get_bin_window</title>
<programlisting><methodsynopsis language="python">
<methodname>get_bin_window</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a <link
linkend="class-gdkwindow"><classname>gtk.gdk.Window</classname></link>, or
<literal>None</literal></simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_bin_window</methodname>() method returns the
window that the treeview renders to or <literal>None</literal> if the
treeview is not realized yet. This is used primarily to compare to the
<literal>event.window</literal> attribute to confirm that the event on the
treeview is on the right window.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-path-at-pos">
<title>gtk.TreeView.get_path_at_pos</title>
<programlisting><methodsynopsis language="python">
<methodname>get_path_at_pos</methodname>
<methodparam><parameter role="keyword">x</parameter></methodparam>
<methodparam><parameter role="keyword">y</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">x</parameter> :</term>
<listitem><simpara>The x position to be
identified.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">y</parameter> :</term>
<listitem><simpara>The y position to be
identified.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a tuple containing: a tree path; a <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
object; the X coordinate relative to the cell; and, the Y
coordinate relative to the cell. If there is no path at the
position <literal>None</literal> is returned.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_path_at_pos</methodname>() method returns a
tuple containing:</para>
<itemizedlist>
<listitem>
<simpara>the path at the specified point
(<parameter>x</parameter>, <parameter>y</parameter>), relative to widget
coordinates</simpara>
</listitem>
<listitem>
<simpara>the <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
at that point</simpara>
</listitem>
<listitem>
<simpara>the X coordinate relative to the cell
background</simpara>
</listitem>
<listitem>
<simpara>the Y coordinate relative to the cell
background</simpara>
</listitem>
</itemizedlist>
<para><parameter>x</parameter> and <parameter>y</parameter> are
relative to the coordinates of an event on the treeview only when
<literal>event.window==treeview.get_bin_window()</literal>. It is primarily
used for popup menus. This method is only meaningful if the treeview is
realized. This method returns <literal>None</literal> if there is no path at
the position.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-cell-area">
<title>gtk.TreeView.get_cell_area</title>
<programlisting><methodsynopsis language="python">
<methodname>get_cell_area</methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">path</parameter> :</term>
<listitem><simpara>a tree path for the row</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">column</parameter> :</term>
<listitem><simpara>a <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
for the column</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>rectangle</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_cell_area</methodname>() method returns the
bounding <link
linkend="class-gdkrectangle"><classname>gtk.gdk.Rectangle</classname></link>
in tree window coordinates for the cell at the row specified by
<parameter>path</parameter> and the column specified by
<parameter>column</parameter>. If <parameter>path</parameter> points to a
path not currently displayed, the <parameter>y</parameter> and
<parameter>height</parameter> attributes of the rectangle will be 0. The sum
of all cell rects does not cover the entire tree; there are extra pixels in
between rows, for example. The returned rectangle is equivalent to the
<parameter>cell_area</parameter> passed to the <link
linkend="method-gtkcellrenderer--render"><methodname>gtk.CellRenderer.render</methodname>()</link>
method. This method is only valid if the treeview is realized.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-background-area">
<title>gtk.TreeView.get_background_area</title>
<programlisting><methodsynopsis language="python">
<methodname>get_background_area</methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">path</parameter> :</term>
<listitem><simpara>a tree path for the row,</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">column</parameter> :</term>
<listitem><simpara>a <link
linkend="class-gtktreeviewcolumn"><classname>gtk.TreeViewColumn</classname></link>
for the column</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a rectangle</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_background_area</methodname>() method
returns the bounding <link
linkend="class-gdkrectangle"><classname>gtk.gdk.Rectangle</classname></link>
in tree window coordinates for the cell at the row specified by
<parameter>path</parameter> and the column specified by
<parameter>column</parameter>. If <parameter>path</parameter> points to a
node not found in the tree, the <parameter>y</parameter> and
<parameter>height</parameter> attributes of the rectangle will be 0. The
returned rectangle is equivalent to the
<parameter>background_area</parameter> passed to the <link
linkend="method-gtkcellrenderer--render"><methodname>gtk.CellRenderer.render</methodname>()</link>.
These background areas tile to cover the entire tree window (except for the
area used for header buttons). Contrast with the
<parameter>cell_area</parameter>, returned by the <link
linkend="method-gtktreeview--get-cell-area"><methodname>get_cell_area</methodname>()</link>
method, that returns only the cell itself, excluding the surrounding borders
and the tree expander area.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-visible-rect">
<title>gtk.TreeView.get_visible_rect</title>
<programlisting><methodsynopsis language="python">
<methodname>get_visible_rect</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a rectangle</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_visible_rect</methodname>() method returns
the bounding <link
linkend="class-gdkrectangle"><classname>gtk.gdk.Rectangle</classname></link>
for the currently visible region of the treeview widget, in tree
coordinates. Convert to widget coordinates with the <link
linkend="method-gtktreeview--tree-to-widget-coords"><methodname>tree_to_widget_coords</methodname>()</link>.
Tree coordinates start at 0,0 for row 0 of the tree, and cover the entire
scrollable area of the tree.</para>
</refsect2>
<refsect2 id="method-gtktreeview--widget-to-tree-coords">
<title>gtk.TreeView.widget_to_tree_coords</title>
<programlisting><methodsynopsis language="python">
<methodname>widget_to_tree_coords</methodname>
<methodparam><parameter>wx</parameter></methodparam>
<methodparam><parameter>wy</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>wx</parameter> :</term>
<listitem><simpara>the widget X coordinate</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>wy</parameter> :</term>
<listitem><simpara>the widget Y coordinate</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a tuple containing the tree X and Y
coordinates</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>widget_to_tree_coords</methodname>() method
returns a tuple containing the tree X and Y coordinates for the widget
coordinates specified by <parameter>wx</parameter> and
<parameter>wy</parameter>. The tree coordinates cover the full scrollable
area of the tree.</para>
</refsect2>
<refsect2 id="method-gtktreeview--tree-to-widget-coords">
<title>gtk.TreeView.tree_to_widget_coords</title>
<programlisting><methodsynopsis language="python">
<methodname>tree_to_widget_coords</methodname>
<methodparam><parameter>tx</parameter></methodparam>
<methodparam><parameter>ty</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>tx</parameter> :</term>
<listitem><simpara>tree X coordinate</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>ty</parameter> :</term>
<listitem><simpara>tree Y coordinate</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a tuple containing the widget X and Y
coordinates</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>tree_to_widget_coords</methodname>() method
returns a tuple containing the widget coordinates for the tree coordinates
specified by <parameter>tx</parameter> and <parameter>ty</parameter>.</para>
</refsect2>
<refsect2 id="method-gtktreeview--enable-model-drag-source">
<title>gtk.TreeView.enable_model_drag_source</title>
<programlisting><methodsynopsis language="python">
<methodname>enable_model_drag_source</methodname>
<methodparam><parameter
role="keyword">start_button_mask</parameter></methodparam>
<methodparam><parameter
role="keyword">targets</parameter></methodparam>
<methodparam><parameter
role="keyword">actions</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter
role="keyword">start_button_mask</parameter> :</term>
<listitem><simpara>the bitmask of buttons that can start the
drag</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">targets</parameter> :</term>
<listitem><simpara>a sequence of tuples containing target
data</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">actions</parameter> :</term>
<listitem><simpara>the possible actions for a
drag</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>enable_model_drag_source</methodname>() method
sets the treeview to start a drag operation when the user click and
drags on a row. The value of <parameter>start_button_mask</parameter>
is a combination of the<xref linkend="gdk-modifier-constants"
endterm="gdk-modifier-constants-title"></xref>.</para>
<para><parameter>targets</parameter> is a sequence (list or tuple) of
tuples that contain information about the targets. The target data
contains a string representing the drag type, target flags (a
combination of the <xref linkend="gtk-target-flags-constants"
endterm="gtk-target-flags-constants-title"></xref>) and an application
assigned integer ID used for identification purposes.</para>
<para>The value of <parameter>actions</parameter> is one of the <xref
linkend="gdk-drag-action-constants"
endterm="gdk-drag-action-constants-title"></xref>.</para>
</refsect2>
<refsect2 id="method-gtktreeview--enable-model-drag-dest">
<title>gtk.TreeView.enable_model_drag_dest</title>
<programlisting><methodsynopsis language="python">
<methodname>enable_model_drag_dest</methodname>
<methodparam><parameter
role="keyword">targets</parameter></methodparam>
<methodparam><parameter
role="keyword">actions</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">targets</parameter> :</term>
<listitem><simpara>a sequence of tuples containing target
data</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">actions</parameter> :</term>
<listitem><simpara>the possible actions for a
drag</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>enable_model_drag_dest</methodname>() method
sets the treeview to receive a drag drop.</para>
<para><parameter>targets</parameter> is a sequence (list or tuple) of
tuples that contain information about the targets. The target data
contains a string representing the drag type, target flags (a
combination of <literal>gtk.TARGET_SAME_APP</literal> and
<literal>gtk.TARGET_SAME_WIDGET</literal> or neither) and an
application assigned integer ID used for identification
purposes.</para>
<para>The value of <parameter>actions</parameter> is one of the <xref
linkend="gdk-drag-action-constants"
endterm="gdk-drag-action-constants-title"></xref>.</para>
</refsect2>
<refsect2 id="method-gtktreeview--unset-rows-drag-source">
<title>gtk.TreeView.unset_rows_drag_source</title>
<programlisting><methodsynopsis language="python">
<methodname>unset_rows_drag_source</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<para>The <methodname>unset_rows_drag_source</methodname>() method
unsets the drag source information.</para>
</refsect2>
<refsect2 id="method-gtktreeview--unset-rows-drag-dest">
<title>gtk.TreeView.unset_rows_drag_dest</title>
<programlisting><methodsynopsis language="python">
<methodname>unset_rows_drag_dest</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<para>The <methodname>unset_rows_drag_dest</methodname>() method
unsets the drag destination information.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-drag-dest-row">
<title>gtk.TreeView.set_drag_dest_row</title>
<programlisting><methodsynopsis language="python">
<methodname>set_drag_dest_row</methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
<methodparam><parameter
role="keyword">pos</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">path</parameter> :</term>
<listitem><simpara>a tree path of the row to highlight, or
<literal>None</literal>.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">pos</parameter> :</term>
<listitem><simpara>a drop position</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_drag_dest_row</methodname>() method sets the
treeview drag destination row to the value specified by
<parameter>path</parameter> with the drop position specified by
<parameter>pos</parameter>. The value of <parameter>pos</parameter> must be
one of: <literal>gtk.TREE_VIEW_DROP_BEFORE</literal>,
<literal>gtk.TREE_VIEW_DROP_AFTER</literal>,
<literal>gtk.TREE_VIEW_DROP_INTO_OR_BEFORE</literal> or
<literal>gtk.TREE_VIEW_DROP_INTO_OR_AFTER</literal>.</para>
<para>In PyGTK 2.10 and above, <parameter>path</parameter> may be
<literal>None</literal>.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-drag-dest-row">
<title>gtk.TreeView.get_drag_dest_row</title>
<programlisting><methodsynopsis language="python">
<methodname>get_drag_dest_row</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a 2-tuple containing the tree path and the drop
position relative to the tree path or <literal>
None</literal></simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_drag_dest_row</methodname>() method returns
a 2-tuple containing the path of the drag destination row and a drop
position relative to the destination row. The drop position is one of:
<literal>gtk.TREE_VIEW_DROP_BEFORE</literal>,
<literal>gtk.TREE_VIEW_DROP_AFTER</literal>,
<literal>gtk.TREE_VIEW_DROP_INTO_OR_BEFORE</literal> or
<literal>gtk.TREE_VIEW_DROP_INTO_OR_AFTER</literal>. This method returns
<literal>None</literal> if no drag destination row is set.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-dest-row-at-pos">
<title>gtk.TreeView.get_dest_row_at_pos</title>
<programlisting><methodsynopsis language="python">
<methodname>get_dest_row_at_pos</methodname>
<methodparam><parameter
role="keyword">x</parameter></methodparam>
<methodparam><parameter
role="keyword">y</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">x</parameter> :</term>
<listitem><simpara>the x coordinate of the
position</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">y</parameter> :</term>
<listitem><simpara>the y coordinate of the
position</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a 2-tuple containing the path of the row and
the drop position at the position specified by <parameter>x</parameter> and
<parameter>y</parameter> or <literal>None</literal></simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_dest_row_at_pos</methodname>() method
returns a 2-tuple containing the path of the row and the drop position
relative to the row of the position specified by <parameter>x</parameter>
and <parameter>y</parameter>. The drop position is one of:
<literal>gtk.TREE_VIEW_DROP_BEFORE</literal>,
<literal>gtk.TREE_VIEW_DROP_AFTER</literal>,
<literal>gtk.TREE_VIEW_DROP_INTO_OR_BEFORE</literal> or
<literal>gtk.TREE_VIEW_DROP_INTO_OR_AFTER</literal>.</para>
</refsect2>
<refsect2 id="method-gtktreeview--create-row-drag-icon">
<title>gtk.TreeView.create_row_drag_icon</title>
<programlisting><methodsynopsis language="python">
<methodname>create_row_drag_icon</methodname>
<methodparam><parameter
role="keyword">path</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">path</parameter> :</term>
<listitem><simpara>a tree path</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a new pixmap of the drag
icon.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>create_row_drag_icon</methodname>() method
creates a <link
linkend="class-gdkpixmap"><classname>gtk.gdk.Pixmap</classname></link>
representation of the row specified by <parameter>path</parameter>. This
image is used for a drag icon.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-enable-search">
<title>gtk.TreeView.set_enable_search</title>
<programlisting><methodsynopsis language="python">
<methodname>set_enable_search</methodname>
<methodparam><parameter
role="keyword">enable_search</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter
role="keyword">enable_search</parameter> :</term>
<listitem><simpara>if <literal>True</literal>, the user can search
interactively</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_enable_search</methodname>() method sets the
"enable-search" property to the value of
<parameter>enable_search</parameter>. If
<parameter>enable_search</parameter> is <literal>True</literal> the user can
type in text to search through the tree interactively.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-enable-search">
<title>gtk.TreeView.get_enable_search</title>
<programlisting><methodsynopsis language="python">
<methodname>get_enable_search</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the user can search
interactively</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_enable_search</methodname>() method returns
the value of the "enable-search" property. If "enable-search" is
<literal>True</literal> the tree allows interactive searching.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-search-column">
<title>gtk.TreeView.get_search_column</title>
<programlisting><methodsynopsis language="python">
<methodname>get_search_column</methodname>
<methodparam></methodparam> </methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the column the interactive search code
searches.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>get_search_column</methodname>() method returns
the value of the "search-column" property that is the column searched by
the interactive search code.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-search-column">
<title>gtk.TreeView.set_search_column</title>
<programlisting><methodsynopsis language="python">
<methodname>set_search_column</methodname>
<methodparam><parameter
role="keyword">column</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">column</parameter> :</term>
<listitem><simpara>the column to search</simpara></listitem>
</varlistentry>
</variablelist>
<para>The <methodname>set_search_column</methodname>() method sets the
"search-column" property to the value of <parameter>column</parameter>. The
value of <parameter>column</parameter> is the column where the interactive
search code should search. Additionally, this method turns on interactive
searching (see the <link
linkend="method-gtktreeview--set-enable-search"><methodname>set_enable_search</methodname>()</link>
method).</para>
</refsect2>
<!-- NOT IMPLEMENTED
<refsect2 id="method-gtktreeview- -get-search-equal-func">
<title>gtk.TreeView.get_search_equal_func</title>
<programlisting><methodsynopsis language="python">
<methodname>get_search_equal_func</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the currently used compare function for the
search code.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.4 and above.</para>
</note>
<para>The <methodname>get_search_equal_func</methodname>() method
returns the compare function currently in use. This method returns None if
the default <link
linkend="class-gtktreeview"><classname>gtk.TreeView</classname></link>
search equal function is being used. See the <link
linkend="method-gtktreeview- -set-search-equal-func"><methodname>set_search_equal_func</methodname>()</link>
method for more information.</para>
</refsect2>
END NOT IMPLEMENTED -->
<refsect2 id="method-gtktreeview--set-search-equal-func">
<title>gtk.TreeView.set_search_equal_func</title>
<programlisting><methodsynopsis language="python">
<methodname>set_search_equal_func</methodname>
<methodparam><parameter role="keyword">func</parameter><initializer>None</initializer></methodparam>
<methodparam><parameter role="keyword">user_data</parameter><initializer>None</initializer></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">func</parameter> :</term>
<listitem><simpara>the compare function to use during the search or <literal>None</literal></simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">user_data</parameter> :</term>
<listitem><simpara>user data to pass to <parameter>func</parameter>, or <literal>None</literal></simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.4 and above.</para>
</note>
<para>The <methodname>set_search_equal_func</methodname>() method sets
the compare function for the interactive search capabilities to the function
specified by <parameter>func</parameter>. If
<parameter>user_data</parameter> is specified and not
<literal>None</literal>, it is passed to <parameter>func</parameter>. If
<parameter>func</parameter> is <literal>None</literal>, the default <link
linkend="class-gtktreeview"><classname>gtk.TreeView</classname></link>
search equal function will be used. The signature of
<parameter>func</parameter> is:</para>
<programlisting>
def func(<parameter>model</parameter>, <parameter>column</parameter>, <parameter>key</parameter>, <parameter>iter</parameter>, <parameter>data</parameter>)
</programlisting>
<para>where <parameter>model</parameter> is the <link
linkend="class-gtktreemodel"><classname>gtk.TreeModel</classname></link> of
the <link
linkend="class-gtktreeview"><classname>gtk.TreeView</classname></link>,
<parameter>column</parameter> is the number of the column being searched
(see the <link
linkend="method-gtktreeview--set-search-column"><methodname>set_search_column</methodname>()</link>
method for more information), <parameter>key</parameter> is the string being
searched for, <parameter>iter</parameter> is a <link
linkend="class-gtktreeiter"><classname>gtk.TreeIter</classname></link>
pointing to the current candidate row and <parameter>data</parameter> is the
context data <parameter>user_data</parameter>. <parameter>func</parameter>
should return <literal>False</literal> to indicate that the row matches the
search criteria.</para>
</refsect2>
<!-- NOT IMPLEMENTED
<refsect2 id="method-gtktreeview- -set-destroy-count-func">
<title>gtk.TreeView.set_destroy_count_func</title>
<programlisting><methodsynopsis language="python">
<methodname>set_destroy_count_func</methodname>
<methodparam><parameter role="keyword">func</parameter></methodparam>
<methodparam><parameter role="keyword">data</parameter></methodparam>
<methodparam><parameter role="keyword">destroy</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">func</parameter> :</term>
<listitem><simpara>Function to be called when a view row is destroyed, or <literal>None</literal></simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">data</parameter> :</term>
<listitem><simpara>User data to be passed to <parameter>func</parameter>, or <literal>None</literal></simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">destroy</parameter> :</term>
<listitem><simpara>Destroy notifier for <parameter>data</parameter>, or <literal>None</literal></simpara></listitem>
</varlistentry>
</variablelist>
<para>
This function should almost never be used. It is meant for private use by
ATK for determining the number of visible children that are removed when the
user collapses a row, or a row is deleted.
</para> </refsect2>
END NOT IMPLEMENTED -->
<refsect2 id="method-gtktreeview--get-fixed-height-mode">
<title>gtk.TreeView.get_fixed_height_mode</title>
<programlisting><methodsynopsis language="python">
<methodname>get_fixed_height_mode</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if fixed height mode
is enabled.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.6 and above.</para>
</note>
<para>The <methodname>get_fixed_height_mode</methodname>() method
returns the value of the "fixed-height-mode" property. If the
"fixed-height-mode" property is <literal>True</literal>, all rows are
assumed to be the same height.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-fixed-height-mode">
<title>gtk.TreeView.set_fixed_height_mode</title>
<programlisting><methodsynopsis language="python">
<methodname>set_fixed_height_mode</methodname>
<methodparam><parameter
role="keyword">enable</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">enable</parameter> :</term>
<listitem><simpara>if <literal>True</literal> enable fixed height
mode.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.6 and above.</para>
</note>
<para>The <methodname>set_fixed_height_mode</methodname>() method sets
the "fixed-height-mode" property to the value of
<parameter>enable</parameter>. If <parameter>enable</parameter> is
<literal>True</literal> all rows are assumed to have the same height which
speeds up <link
linkend="class-gtktreeview"><classname>gtk.TreeView</classname></link>
displays. Only enable this option if all rows are the same height and all
columns are of type <literal>gtk.TREE_VIEW_COLUMN_FIXED</literal> (see the
<xref linkend="gtk-treeviewcolumn-sizing-constants"
endterm="gtk-treeviewcolumn-sizing-constants-title"></xref>).</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-hover-selection">
<title>gtk.TreeView.get_hover_selection</title>
<programlisting><methodsynopsis language="python">
<methodname>get_hover_selection</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if hover selection
mode is enabled.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.6 and above.</para>
</note>
<para>The <methodname>get_hover_selection</methodname>() method
returns the value of the "hover-selection" property. If the
"hover-selection" property is <literal>True</literal> the selected row
follows the pointer. See the <link
linkend="method-gtktreeview--set-hover-selection"><methodname>set_hover_selection</methodname>()</link>
method for more detail.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-hover-selection">
<title>gtk.TreeView.set_hover_selection</title>
<programlisting><methodsynopsis language="python">
<methodname>set_hover_selection</methodname>
<methodparam><parameter
role="keyword">hover</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">hover</parameter> :</term>
<listitem><simpara>if <literal>True</literal> enable hover
selection mode.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.6 and above.</para>
</note>
<para>The <methodname></methodname>() method sets the
"hover-selection" property to the value of <parameter>hover</parameter>. If
<parameter>hover</parameter> is <literal>True</literal> the hover selection
mode is enables and the selected row follows the pointer. Currently, this
works only for the selection modes <literal>gtk.SELECTION_SINGLE</literal>
and <literal>gtk.SELECTION_BROWSE</literal> (see the <xref
linkend="gtk-selection-mode-constants"
endterm="gtk-selection-mode-constants-title"></xref>).</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-hover-expand">
<title>gtk.TreeView.get_hover_expand</title>
<programlisting><methodsynopsis language="python">
<methodname>get_hover_expand</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if hover expand mode is
enabled</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.6 and above.</para>
</note>
<para>The <methodname>get_hover_expand</methodname>() method returns
the value of the "hover-expand" property. If the "hover-expand" property is
<literal>True</literal> rows expand or collapse if the pointer moves over
them.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-hover-expand">
<title>gtk.TreeView.set_hover_expand</title>
<programlisting><methodsynopsis language="python">
<methodname>set_hover_expand</methodname>
<methodparam><parameter
role="keyword">expand</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">expand</parameter> :</term>
<listitem><simpara>if <literal>True</literal> enable hover expand
mode.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.6 and above.</para>
</note>
<para>The <methodname>set_hover_expand</methodname>() method sets the
"hover-expand" property to the value of <parameter>expand</parameter>. If
<parameter>expand</parameter> is <literal>True</literal>, rows expand or
collapse if the pointer moves over them. </para>
</refsect2>
<refsect2 id="method-gtktreeview--set-row-separator-func">
<title>gtk.TreeView.set_row_separator_func</title>
<programlisting><methodsynopsis language="python">
<methodname>set_row_separator_func</methodname>
<methodparam><parameter role="keyword">func</parameter><initializer>None</initializer></methodparam>
<methodparam><parameter role="keyword">user_data</parameter><initializer>None</initializer></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">func</parameter> :</term>
<listitem><simpara>the row separator function or
<literal>None</literal></simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">user_data</parameter> :</term>
<listitem><simpara>user data to pass to <parameter>func</parameter>, or <literal>None</literal></simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.6 and above.</para>
</note>
<para>The <methodname>set_row_separator_func</methodname>() method
sets the row separator function to the function specified by
<parameter>func</parameter>. The row separator function is used to determine
if a row should be displayed as a separator. If
<parameter>user_data</parameter> is specified and not
<literal>None</literal>, it is passed to <parameter>func</parameter>. If
<parameter>func</parameter> is <literal>None</literal>, no separators will
be drawn. The signature of <parameter>func</parameter> is:</para>
<programlisting>
def func(<parameter>model</parameter>, <parameter>iter</parameter>, <parameter>data</parameter>)
</programlisting>
<para>where <parameter>model</parameter> is the <link
linkend="class-gtktreemodel"><classname>gtk.TreeModel</classname></link> of
the <link
linkend="class-gtktreeview"><classname>gtk.TreeView</classname></link>,
<parameter>iter</parameter> is a <link
linkend="class-gtktreeiter"><classname>gtk.TreeIter</classname></link>
pointing to the current candidate row and <parameter>data</parameter> is the
context data <parameter>user_data</parameter>. <parameter>func</parameter>
should return <literal>True</literal> to indicate that the row is a
separator.</para>
<para>A common way to implement this is to have a boolean column in
<parameter>model</parameter>, whose values <parameter>func</parameter>
returns.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-visible-range">
<title>gtk.TreeView.get_visible_range</title>
<programlisting><methodsynopsis language="python">
<methodname>get_visible_range</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>a 2-tuple containing the start and end paths of
the visible region or <literal>None</literal>.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.10 and above.</para>
</note>
<para>The <methodname>get_visible_range</methodname>() method returns
a 2-tuple containing the start and end paths for the visible region in the
treeview. If no valid paths are available this method returns
<literal>None</literal>.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-headers-clickable">
<title>gtk.TreeView.get_headers_clickable</title>
<programlisting><methodsynopsis language="python">
<methodname>get_headers_clickable</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if all header columns
are clickable</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.10 and above.</para>
</note>
<para>Returns <literal>True</literal> if all header columns are
clickable.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-search-entry">
<title>gtk.TreeView.get_search_entry</title>
<programlisting><methodsynopsis language="python">
<methodname>get_search_entry</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the entry currently in use as the search
entry.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.10 and above.</para>
</note>
<para>Returns the <link
linkend="class-gtkentry"><classname>gtk.Entry</classname></link> which
is currently in use as the interactive search entry for the treeview.
In case the built-in entry is being used, <literal>None</literal> will
be returned.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-search-entry">
<title>gtk.TreeView.set_search_entry</title>
<programlisting><methodsynopsis language="python">
<methodname>set_search_entry</methodname>
<methodparam><parameter role="keyword">entry</parameter><initializer>None</initializer></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">entry</parameter> :</term>
<listitem><simpara>the entry the interactive search code of the
treeview should use or
<literal>None</literal></simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.10 and above.</para>
</note>
<para>Sets the entry which the interactive search code will use for
this treeview. This is useful when you want to provide a search entry
in our interface at all time at a fixed position. Passing
<literal>None</literal> for <parameter>entry</parameter> will make the
interactive search code use the built-in popup entry again.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-search-position-func">
<title>gtk.TreeView.set_search_position_func</title>
<programlisting><methodsynopsis language="python">
<methodname>set_search_position_func</methodname>
<methodparam><parameter role="keyword">func</parameter></methodparam>
<methodparam><parameter role="keyword">data</parameter><initializer>None</initializer></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">func</parameter> :</term>
<listitem><simpara>the function to use to position the search
dialog, or <literal>None</literal> to use the default search
position function</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">data</parameter> :</term>
<listitem><simpara>user data to pass to
<parameter>func</parameter>, or
<literal>None</literal></simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.10 and above.</para>
</note>
<para>Sets the function to use when positioning the search dialog. The
signature of <parameter>func</parameter> is:</para>
<programlisting>
def func(treeview, search_dialog, user_data):
</programlisting>
<para>where <parameter>search_dialog</parameter> is the dialog to be
positioned and <parameter>user_data</parameter> is
<parameter>data</parameter>.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-rubber-banding">
<title>gtk.TreeView.set_rubber_banding</title>
<programlisting><methodsynopsis language="python">
<methodname>set_rubber_banding</methodname>
<methodparam><parameter role="keyword">enable</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">enable</parameter> :</term>
<listitem><simpara>if <literal>True</literal> enable rubber
banding</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.10 and above.</para>
</note>
<para>Enables or disables rubber banding. If the selection mode is
<literal>gtk.SELECTION_MULTIPLE</literal>, rubber banding will allow
the user to select multiple rows by dragging the mouse.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-rubber-banding">
<title>gtk.TreeView.get_rubber_banding</title>
<programlisting><methodsynopsis language="python">
<methodname>get_rubber_banding</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if rubber banding is
enabled.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.10 and above.</para>
</note>
<para>Returns whether rubber banding is enabled. If the selection
mode is <literal>gtk.SELECTION_MULTIPLE</literal>, rubber banding will
allow the user to select multiple rows by dragging the mouse.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-grid-lines">
<title>gtk.TreeView.get_grid_lines</title>
<programlisting><methodsynopsis language="python">
<methodname>get_grid_lines</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>one of the <xref
linkend="gtk-treeview-grid-lines-constants"
endterm="gtk-treeview-grid-lines-constants-title"></xref>
indicating which grid lines are enabled.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.10 and above.</para>
</note>
<para>Returns which grid lines are enabled.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-grid-lines">
<title>gtk.TreeView.set_grid_lines</title>
<programlisting><methodsynopsis language="python">
<methodname>set_grid_lines</methodname>
<methodparam><parameter role="keyword">grid_lines</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">grid_lines</parameter> :</term>
<listitem><simpara>one of the <xref
linkend="gtk-treeview-grid-lines-constants"
endterm="gtk-treeview-grid-lines-constants-title"></xref>
indicating which grid lines to enable.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.10 and above.</para>
</note>
<para>Sets which grid lines to draw.</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-enable-tree-lines">
<title>gtk.TreeView.get_enable_tree_lines</title>
<programlisting><methodsynopsis language="python">
<methodname>get_enable_tree_lines</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if tree lines are
drawn.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.10 and above.</para>
</note>
<para>Returns <literal>True</literal> if tree lines are drawn.</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-enable-tree-lines">
<title>gtk.TreeView.set_enable_tree_lines</title>
<programlisting><methodsynopsis language="python">
<methodname>set_enable_tree_lines</methodname>
<methodparam><parameter role="keyword">enabled</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">enabled</parameter> :</term>
<listitem><simpara>if <literal>True</literal> enable tree line
drawing.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.10 and above.</para>
</note>
<para>Sets whether to draw lines interconnecting the expanders. This
does not have any visible effects for lists.</para>
</refsect2>
<refsect2 id="method-gtktreeview--convert-widget-to-bin-window-coords">
<title>gtk.TreeView.convert_widget_to_bin_window_coords</title>
<programlisting><methodsynopsis language="python">
<methodname>convert_widget_to_bin_window_coords</methodname>
<methodparam><parameter role="keyword">widget_x</parameter></methodparam>
<methodparam><parameter role="keyword">widget_y</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">widget_x</parameter> :</term>
<listitem><simpara>X coordinate relative to the widget.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">widget_y</parameter> :</term>
<listitem><simpara>Y coordinate relative to the widget.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>A tuple containing the bin_window X and Y coordinates.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Converts widget coordinates to coordinates for the bin_window (see <methodname><link
linkend="method-gtktreeview--get-bin-window">get_bin_window</link></methodname>).
</para>
</refsect2>
<refsect2 id="method-gtktreeview--convert-widget-to-tree-coords">
<title>gtk.TreeView.convert_widget_to_tree_coords</title>
<programlisting><methodsynopsis language="python">
<methodname>convert_widget_to_tree_coords</methodname>
<methodparam><parameter role="keyword">widget_x</parameter></methodparam>
<methodparam><parameter role="keyword">widget_y</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">widget_x</parameter> :</term>
<listitem><simpara>X coordinate relative to the widget.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">widget_y</parameter> :</term>
<listitem><simpara>Y coordinate relative to the widget.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>A tuple containing the tree X and Y coordinates.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Converts widget coordinates to coordinates for the tree (the full scrollable area of the tree).
</para>
</refsect2>
<refsect2 id="method-gtktreeview--convert-tree-to-widget-coords">
<title>gtk.TreeView.convert_tree_to_widget_coords</title>
<programlisting><methodsynopsis language="python">
<methodname>convert_tree_to_widget_coords</methodname>
<methodparam><parameter role="keyword">tree_x</parameter></methodparam>
<methodparam><parameter role="keyword">tree_y</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">tree_x</parameter> :</term>
<listitem><simpara>X coordinate relative to the tree.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">tree_y</parameter> :</term>
<listitem><simpara>Y coordinate relative to the tree.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>A tuple containing the widget X and Y coordinates.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Converts tree coordinates (coordinates in full scrollable area of the tree) to widget coordinates.
</para>
</refsect2>
<refsect2 id="method-gtktreeview--convert-tree-to-bin-window-coords">
<title>gtk.TreeView.convert_tree_to_bin_window_coords</title>
<programlisting><methodsynopsis language="python">
<methodname>convert_tree_to_bin_window_coords</methodname>
<methodparam><parameter role="keyword">tree_x</parameter></methodparam>
<methodparam><parameter role="keyword">tree_y</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">tree_x</parameter> :</term>
<listitem><simpara>X coordinate relative to the tree.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">tree_y</parameter> :</term>
<listitem><simpara>Y coordinate relative to the tree.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>A tuple containing the bin window X and Y coordinates.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Converts tree coordinates (coordinates in full scrollable area of the tree) to bin_window coordinates.
</para>
</refsect2>
<refsect2 id="method-gtktreeview--convert-bin-window-to-widget-coords">
<title>gtk.TreeView.convert_bin_window_to_widget_coords</title>
<programlisting><methodsynopsis language="python">
<methodname>convert_bin_window_to_widget_coords</methodname>
<methodparam><parameter role="keyword">window_x</parameter></methodparam>
<methodparam><parameter role="keyword">window_y</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">window_x</parameter> :</term>
<listitem><simpara>X coordinate relative to the bin window.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">window_y</parameter> :</term>
<listitem><simpara>Y coordinate relative to the bin window.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>A tuple containing the widget X and Y coordinates.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Converts bin window coordinates (see <methodname><link
linkend="method-gtktreeview--get-bin-window">get_bin_window</link></methodname>)
to widget relative coordinates.
</para>
</refsect2>
<refsect2 id="method-gtktreeview--convert-bin-window-to-tree-coords">
<title>gtk.TreeView.convert_bin_window_to_tree_coords</title>
<programlisting><methodsynopsis language="python">
<methodname>convert_bin_window_to_tree_coords</methodname>
<methodparam><parameter role="keyword">window_x</parameter></methodparam>
<methodparam><parameter role="keyword">window_y</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">window_x</parameter> :</term>
<listitem><simpara>X coordinate relative to the bin window.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">window_y</parameter> :</term>
<listitem><simpara>Y coordinate relative to the bin window.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>A tuple containing the tree X and Y coordinates.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Converts bin window coordinates (see <methodname><link
linkend="method-gtktreeview--get-bin-window">get_bin_window</link></methodname>)
to the tree (the full scrollable area of the tree).
</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-level-indentation">
<title>gtk.TreeView.get_level_indentation</title>
<programlisting><methodsynopsis language="python">
<methodname>get_level_indentation</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the amount of extra indentation for child levels in tree_view.
A return value of 0 means that this feature is disabled.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Returns the amount, in pixels, of extra indentation for child levels in tree_view.
</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-level-indentation">
<title>gtk.TreeView.set_level_indentation</title>
<programlisting><methodsynopsis language="python">
<methodname>set_level_indentation</methodname>
<methodparam><parameter role="keyword">indentation</parameter></methodparam>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">indentation</parameter> :</term>
<listitem><simpara>the amount, in pixels, of extra indentation in tree_view.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Sets the amount of extra indentation for child levels to use in tree_view
in addition to the default indentation. The value should be specified in pixels,
a value of 0 disables this feature and in this case only the default indentation
will be used. This does not have any visible effects for lists.
</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-show-expanders">
<title>gtk.TreeView.get_show_expanders</title>
<programlisting><methodsynopsis language="python">
<methodname>get_show_expanders</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if expanders are drawn
in tree_view, <literal>False</literal> otherwise.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Returns whether or not expanders are drawn in tree_view.
</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-show-expanders">
<title>gtk.TreeView.set_show_expanders</title>
<programlisting><methodsynopsis language="python">
<methodname>set_show_expanders</methodname>
<methodparam><parameter role="keyword">enabled</parameter></methodparam>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">indentation</parameter> :</term>
<listitem><simpara><literal>True</literal> to enable expander drawing, <literal>False</literal> otherwise.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Sets whether to draw and enable expanders and indent child rows in tree_view.
When disabled there will be no expanders visible in trees and there will be
no way to expand and collapse rows by default. Also note that hiding the expanders
will disable the default indentation. You can set a custom indentation in this case using
gtk_tree_view_set_level_indentation().
This does not have any visible effects for lists.
</para>
</refsect2>
<refsect2 id="method-gtktreeview--get-tooltip-column">
<title>gtk.TreeView.get_tooltip_column</title>
<programlisting><methodsynopsis language="python">
<methodname>get_tooltip_column</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara>the index of the tooltip column that is currently
being used, or -1 if this is disabled.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Returns the column of tree_view's model which is being used for
displaying tooltips on tree_view's rows.
</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-tooltip-column">
<title>gtk.TreeView.set_tooltip_column</title>
<programlisting><methodsynopsis language="python">
<methodname>set_tooltip_column</methodname>
<methodparam><parameter role="keyword">column</parameter></methodparam>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">column</parameter> :</term>
<listitem><simpara>an integer, which is a valid column number
for tree_view's model</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
If you only plan to have simple (text-only) tooltips on full rows, you can
use this function to have GtkTreeView handle these automatically for you.
column should be set to the column in tree_view's model containing the
tooltip texts, or -1 to disable this feature.
</para>
<para>
When enabled, GtkWidget::has-tooltip will be set to <literal>True</literal>
and tree_view will connect a GtkWidget::query-tooltip signal handler.
</para>
</refsect2>
<refsect2 id="method-gtktreeview--is-rubber-banding-active">
<title>gtk.TreeView.is_rubber_banding_active</title>
<programlisting><methodsynopsis language="python">
<methodname>is_rubber_banding_active</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if a rubber banding
operation is currently being done in tree_view.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Returns whether a rubber banding operation is currently being done in tree_view.
</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-tooltip-cell">
<title>gtk.TreeView.set_tooltip_cell</title>
<programlisting><methodsynopsis language="python">
<methodname>set_tooltip_cell</methodname>
<methodparam><parameter role="keyword">tooltip</parameter></methodparam>
<methodparam><parameter role="keyword">path</parameter></methodparam>
<methodparam><parameter role="keyword">column</parameter></methodparam>
<methodparam><parameter role="keyword">cell</parameter></methodparam>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">tooltip</parameter> :</term>
<listitem><simpara>a <classname><link linkend="class-gtktooltip">gtk.Tooltip</link></classname>.
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">path</parameter> :</term>
<listitem><simpara>a tree path or <literal>None</literal>.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">column</parameter> :</term>
<listitem><simpara>a <classname><link linkend="class-gtktreeviewcolumn">gtk.TreeViewColumn</link></classname>
or <literal>None</literal>.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">cell</parameter> :</term>
<listitem><simpara>a <classname><link linkend="class-gtkcellrenderer">gtk.CellRenderer</link></classname>
or <literal>None</literal>.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Sets the tip area of tooltip to the area path, column and cell have in common.
For example if path is <literal>None</literal> and column is set, the tip
area will be set to the full area covered by column.
<!-- FIXME the following method is missing
See also gtk_tooltip_set_tip_area().
-->
</para>
</refsect2>
<refsect2 id="method-gtktreeview--set-tooltip-row">
<title>gtk.TreeView.set_tooltip_row</title>
<programlisting><methodsynopsis language="python">
<methodname>set_tooltip_row</methodname>
<methodparam><parameter role="keyword">tooltip</parameter></methodparam>
<methodparam><parameter role="keyword">path</parameter></methodparam>
<methodparam></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter role="keyword">tooltip</parameter> :</term>
<listitem><simpara>a <classname><link linkend="class-gtktooltip">gtk.Tooltip</link></classname>.
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter role="keyword">path</parameter> :</term>
<listitem><simpara>a tree path.</simpara></listitem>
</varlistentry>
</variablelist>
<note>
<para>This method is available in PyGTK 2.12 and above.</para>
</note>
<para>
Sets the tip area of tooltip to be the area covered by the row at path.
<!-- FIXME the following method is missing
See also gtk_tooltip_set_tip_area().
-->
</para>
</refsect2>
</refsect1>
<refsect1>
<title>Signals</title>
<refsect2 id="signal-gtktreeview--columns-changed">
<title>The "columns-changed" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "columns-changed" signal is emitted when a column has been
added to, removed from or moved in <parameter>treeview</parameter>.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--cursor-changed">
<title>The "cursor-changed" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "cursor-changed" signal is emitted when the cursor moves or
is set.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--expand-collapse-cursor-row">
<title>The "expand-collapse-cursor-row" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>logical</parameter></methodparam>
<methodparam><parameter>expand</parameter></methodparam>
<methodparam><parameter>open_all</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>logical</parameter> :</term>
<listitem><simpara>if <literal>True</literal>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>expand</parameter> :</term>
<listitem><simpara>if <literal>True</literal> the row should be
expanded</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>open_all</parameter> :</term>
<listitem><simpara>if <literal>True</literal> recursively expand
all children</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the signal was
handled.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "expand-collapse-cursor-row" signal is emitted when the row
at the cursor needs to be expanded or collapsed.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--move-cursor">
<title>The "move-cursor" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>step</parameter></methodparam>
<methodparam><parameter>count</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>step</parameter> :</term>
<listitem><simpara>the movement step size</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>count</parameter> :</term>
<listitem><simpara>the number of steps to
take</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the signal was
handled.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "move-cursor" signal is emitted when the user moves the
cursor using the <keycap>Right</keycap>, <keycap>Left</keycap>,
<keycap>Up</keycap> or <keycap>Down</keycap> arrow keys or the
<keycap>Page Up</keycap>, <keycap>Page Down</keycap>, <keycap>Home</keycap>
and <keycap>End</keycap> keys.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--row-activated">
<title>The "row-activated" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>path</parameter></methodparam>
<methodparam><parameter>view_column</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>path</parameter> :</term>
<listitem><simpara>the path of the activated
row</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>view_column</parameter> :</term>
<listitem><simpara>the column in the activated
row</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "row-activated" signal is emitted when the <link
linkend="method-gtktreeview--row-activated"><methodname>row_activated</methodname>()</link>
method is called or the user double clicks a <parameter>treeview</parameter>
row. "row-activated" is also emitted when a non-editable row is selected and
one of the keys: <keycap>Space</keycap>, <keycombo
action="simul"><keycap>Shift</keycap><keycap>Space</keycap> </keycombo>,
<keycap>Return</keycap> or <keycap>Enter</keycap> is pressed.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--row-collapsed">
<title>The "row-collapsed" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>iter</parameter></methodparam>
<methodparam><parameter>path</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>iter</parameter> :</term>
<listitem><simpara>a <link
linkend="class-gtktreeiter"><classname>gtk.TreeIter</classname></link>
pointing to the row that collapsed</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>path</parameter> :</term>
<listitem><simpara>the path of the row that
collapsed</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "row-collapsed" signal is emitted when a row is collapsed by
user of programmatic action.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--row-expanded">
<title>The "row-expanded" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>iter</parameter></methodparam>
<methodparam><parameter>path</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>iter</parameter> :</term>
<listitem><simpara>a <link
linkend="class-gtktreeiter"><classname>gtk.TreeIter</classname></link>
pointing to the row that expanded</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>path</parameter> :</term>
<listitem><simpara>the path of the row that
expanded</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "row-expanded" signal is emitted when a row is expanded via
user or programmatic action.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--select-all">
<title>The "select-all" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the signal was
handled.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "select-all" signal is emitted when the user presses
<keycombo action="simul"><keycap>Control</keycap><keycap>a</keycap>
</keycombo> or <keycombo action="simul"><keycap>Control</keycap><keycap>/</keycap>
</keycombo>.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--select-cursor-parent">
<title>The "select-cursor-parent" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the signal was
handled.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "select-cursor-parent" signal is emitted when the user
presses <keycombo action="simul"><keycap>Backspace</keycap></keycombo> while
a row has the cursor.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--select-cursor-row">
<title>The "select-cursor-row" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>start_editing</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>start_editing</parameter> :</term>
<listitem><simpara>if <literal>True</literal> the cell editing is
started</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the signal was
handled.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "select-cursor-row" signal is emitted when a non-editable
row is selected and one of the keys: <keycap>Space</keycap>, <keycombo
action="simul"><keycap>Shift</keycap><keycap>Space</keycap></keycombo>,
<keycap>Return</keycap> or <keycap>Enter</keycap> is pressed.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--set-scroll-adjustments">
<title>The "set-scroll-adjustments" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>hadjustment</parameter></methodparam>
<methodparam><parameter>vadjustment</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>hadjustment</parameter> :</term>
<listitem><simpara>a horizontal <link
linkend="class-gtkadjustment"><classname>gtk.Adjustment</classname></link></simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>vadjustment</parameter> :</term>
<listitem><simpara>a vertical <link
linkend="class-gtkadjustment"><classname>gtk.Adjustment</classname></link></simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the signal was
handled.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "set-scroll-adjustments" signal is emitted when new
horizontal or vertical adjustments are set on the
<parameter>treeview</parameter>.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--start-interactive-search">
<title>The "start-interactive-search" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the signal was
handled.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "start-interactive-search" signal is emitted when the user
presses <keycombo action="simul"><keycap>Control</keycap><keycap>f</keycap>
</keycombo>.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--test-collapse-row">
<title>The "test-collapse-row" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>iter</parameter></methodparam>
<methodparam><parameter>path</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>iter</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtktreeiter"><classname>gtk.TreeIter</classname></link>
pointing at the row to test.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>path</parameter> :</term>
<listitem><simpara>the path of the row to be
tested</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the row should be
collapsed.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "test-collapse-row" signal is emitted when the row pointed
to by <parameter>iter</parameter> and <parameter>path</parameter> is to be
collapsed.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--test-expand-row">
<title>The "test-expand-row" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>iter</parameter></methodparam>
<methodparam><parameter>path</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>iter</parameter> :</term>
<listitem><simpara>the <link
linkend="class-gtktreeiter"><classname>gtk.TreeIter</classname></link>
pointing at the row to test.</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>path</parameter> :</term>
<listitem><simpara>the path of the row to
test</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the row should be
expanded.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "test-expand-row" signal is emitted when the row pointed to
by <parameter>iter</parameter> and <parameter>path</parameter> is to be
expanded.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--toggle-cursor-row">
<title>The "toggle-cursor-row" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the signal was
handled.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "toggle-cursor-row" signal is emitted when the user presses
<keycombo action="simul"><keycap>Control</keycap><keycap>Space</keycap>
</keycombo>.</para>
</refsect2>
<refsect2 id="signal-gtktreeview--unselect-all">
<title>The "unselect-all" gtk.TreeView Signal</title>
<programlisting><methodsynopsis language="python">
<methodname>callback</methodname>
<methodparam><parameter>treeview</parameter></methodparam>
<methodparam><parameter>user_param1</parameter></methodparam>
<methodparam><parameter>...</parameter></methodparam>
</methodsynopsis></programlisting>
<variablelist>
<varlistentry>
<term><parameter>treeview</parameter> :</term>
<listitem><simpara>the treeview that received the
signal</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>user_param1</parameter> :</term>
<listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter> :</term>
<listitem><simpara>additional user parameters (if
any)</simpara></listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
<listitem><simpara><literal>True</literal> if the signal was
handled.</simpara></listitem>
</varlistentry>
</variablelist>
<para>The "unselect-all" signal is emitted when the user presses
<keycombo
action="simul"><keycap>Shift</keycap><keycap>Control</keycap><keycap>a</keycap>
</keycombo> or <keycombo
action="simul"><keycap>Shift</keycap><keycap>Control</keycap><keycap>/</keycap>
</keycombo>.</para>
</refsect2>
</refsect1>
</refentry>
|