Changeset 142

Show
Ignore:
Timestamp:
04/03/2003 02:50:14 AM (6 years ago)
Author:
petli
Message:

Small tweaks to petliwm

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/examples/petliwm.py

    r138 r142  
    8080    _key_name = 'M5-a' 
    8181 
    82                                    
     82 
     83class Forcefull: 
     84    def __client_init__(self): 
     85        if self.res_class == 'Tk': 
     86            x, y, w, h = self.keep_on_screen(self.screen.root_x, 
     87                                             self.screen.root_y, 
     88                                             self.screen.root_width, 
     89                                             self.screen.root_height) 
     90            w, h = self.follow_size_hints(w, h) 
     91            self.configure(x = x, y = y, width = w, height = h) 
     92             
    8393class MyClient(wmanager.Client, 
    8494               outline.XorOutlineClient, 
     
    242252 
    243253    def F3(self, evt): 
    244         self.wm.current_screen.view_find_with_client(Or(name('Netscape'), 
     254        self.wm.current_screen.view_find_with_client(Or(name('Mozilla'), 
     255                                                        name('Netscape'), 
    245256                                                        name('Mozilla-bin'))) 
    246257 
     
    255266        self.wm.current_screen.view_find_with_client(Or(name('xpdf'), 
    256267                                                        name('soffice'), 
    257                                                         name('VCLSalFrame'))) 
     268                                                        name('VCLSalFrame'), 
     269                                                        name('AcroRead'))) 
    258270 
    259271    def F5(self, evt):