1. Maijs 2006

Par godu cibas nacistu publikai

Šodien klausos snoop dogg. Ir ok.

Besī

Kas notiek ar tiem nolādētajiem wxPython'a taimeriem???

Paldies Šiem vāciski runājošajiem puišiem.

import win32gui 
from win32con import * 
from ctypes import * 

MONITOR_DEFAULTTONULL = 0 
MONITOR_DEFAULTTOPRIMARY = 1 
MONITOR_DEFAULTTONEAREST = 2 

MonitorFromWindow = windll.user32.MonitorFromWindow 
GetMonitorInfo = windll.user32.GetMonitorInfoA 
SubtractRect = windll.user32.SubtractRect 
GetWindowRect = windll.user32.GetWindowRect 

class RECT(Structure): 
  _fields_ = [ 
    ('left', c_long), 
    ('top', c_long), 
    ('right', c_long), 
    ('bottom', c_long) 
    ] 
    
  def dump(self): 
    return map(int, (self.left, 
                     self.top, 
                     self.right, 
                     self.bottom)) 

class MONITORINFO(Structure): 
    _fields_ = [ 
            ('cbSize', c_ulong), 
            ('rcMonitor', RECT), 
            ('rcWork', RECT), 
            ('dwFlags', c_ulong) 
        ] 
    def __init__(self): 
        Structure.__init__(self) 
        self.cbSize = sizeof(MONITORINFO) 
    

def windowSize(): 
    hwnd = win32gui.FindWindow('Shell_TrayWnd', None)        
    mon = MonitorFromWindow(hwnd, MONITOR_DEFAULTTONEAREST)   
    mon_info = MONITORINFO()                 
    GetMonitorInfo(mon, pointer(mon_info))   
    workArea = RECT()                        
    taskbarRect = RECT()                     
    GetWindowRect(hwnd, byref(taskbarRect))   
    SubtractRect(byref(workArea), 
                 byref(mon_info.rcMonitor), 
                 byref(taskbarRect)) 
    return (workArea.left, 
            workArea.top, 
            workArea.right, 
            workArea.bottom); 
       
print windowSize();

Iz delfu gudrības vācelēm

Par namīpašnieku Grosfogeli: "Es nekad neesmu seedeejis uz taa poda, brilli pats njeemu, tas nav mans, Ljuda redzeeja, ka nekad neesmu tur gaajis, nu, un pat ja gaaju, uudeni kaartiigi noraavu, ta juus ko, es jau gadu kaa neeedu vispaar, iznjemot vitamiinus, nu Ljuda, naac paskaties, vai tad tas ir mans?, nee, miiliisji, es tas nebiju."

Augusts 2017

7d 1d 2d 3d 4d 5d 6d
  12345
6789101112
13141516171819
20212223242526
2728293031  
Powered by Sviesta Ciba