[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-navigator/src UIwin32.py
From: |
Bajusz Tamás |
Subject: |
gnue-navigator/src UIwin32.py |
Date: |
Fri, 27 Jun 2003 03:22:43 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue-navigator
Branch:
Changes by: Bajusz Tamás <address@hidden> 03/06/27 03:22:43
Modified files:
src : UIwin32.py
Log message:
more work on win32 navigator
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-navigator/src/UIwin32.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: gnue-navigator/src/UIwin32.py
diff -c gnue-navigator/src/UIwin32.py:1.1 gnue-navigator/src/UIwin32.py:1.2
*** gnue-navigator/src/UIwin32.py:1.1 Wed Jun 25 19:03:50 2003
--- gnue-navigator/src/UIwin32.py Fri Jun 27 03:22:43 2003
***************
*** 34,39 ****
--- 34,40 ----
from gnue.common.datasources import GDataObjects, GConnections
from gnue.common.utils.FileUtils import dyn_import, openResource
from gnue.common.apps import GConfig
+ from gnue.navigator import VERSION
from gnue.forms.uidrivers.win32.common import getNextId
from gnue.forms.uidrivers.win32.GFwin32App import *
***************
*** 148,157 ****
win32gui.ShowWindow(self.hTree, win32con.SW_SHOWNORMAL)
# TODO: create imagelist from form.ico, report.ico,...
! iconloc = 'c:\\python22\\shared\\images\\forms\\toolbar-24x24.bmp'
! himl = win32gui.ImageList_LoadImage(0, iconloc, 24, 0, 0xFF000000,
win32con.IMAGE_BITMAP, \
! win32con.LR_LOADFROMFILE | win32con.LR_SHARED |
win32con.LR_CREATEDIBSECTION)
! win32gui.SendMessage(self.hTree, commctrl.TVM_SETIMAGELIST,
commctrl.TVSIL_NORMAL, himl)
def CreateEdit(self):
--- 149,158 ----
win32gui.ShowWindow(self.hTree, win32con.SW_SHOWNORMAL)
# TODO: create imagelist from form.ico, report.ico,...
! # iconloc = 'c:\\python22\\shared\\images\\forms\\toolbar-24x24.bmp'
! # himl = win32gui.ImageList_LoadImage(0, iconloc, 24, 0, 0xFF000000,
win32con.IMAGE_BITMAP, \
! # win32con.LR_LOADFROMFILE | win32con.LR_SHARED |
win32con.LR_CREATEDIBSECTION)
! # win32gui.SendMessage(self.hTree, commctrl.TVM_SETIMAGELIST,
commctrl.TVSIL_NORMAL, himl)
def CreateEdit(self):
***************
*** 193,201 ****
win32gui.SetWindowText(self.hEdit, text4)
break
! elif code == commctrl.NM_RETURN:
! pass
! elif code == commctrl.NM_DBLCLK:
curSelected = win32gui.SendMessage(self.hTree,
commctrl.TVM_GETNEXTITEM, commctrl.TVGN_CARET, 0)
object = self._mapping[curSelected]
if object._type != 'GNStep':
--- 194,200 ----
win32gui.SetWindowText(self.hEdit, text4)
break
! elif code == commctrl.NM_DBLCLK or code == commctrl.NM_RETURN:
curSelected = win32gui.SendMessage(self.hTree,
commctrl.TVM_GETNEXTITEM, commctrl.TVGN_CARET, 0)
object = self._mapping[curSelected]
if object._type != 'GNStep':
***************
*** 217,224 ****
id = win32api.LOWORD(wParam)
if id == ID_EXIT:
win32gui.SendMessage(self.hMainWindow, win32con.WM_CLOSE, 0, 0)
! # elif id == ID_ABOUT:
! # self.OnAbout()
def OnWMSize(self, hwnd, msg, wParam, lParam):
--- 216,223 ----
id = win32api.LOWORD(wParam)
if id == ID_EXIT:
win32gui.SendMessage(self.hMainWindow, win32con.WM_CLOSE, 0, 0)
! elif id == ID_ABOUT:
! self.OnAbout()
def OnWMSize(self, hwnd, msg, wParam, lParam):
***************
*** 263,269 ****
_(" Version: ")+"%s\r\n"+ \
_(" Author : ")+"%s\r\n"+ \
_(" Description:")+"%s\r\n"
! win32gui.MessageBox(self.hMainWindow, text % ("0.0.1","","","",""),
_("About") , win32con.MB_OK | win32con.MB_ICONINFORMATION)
def runForm(self, step, parameters = {}):
--- 262,269 ----
_(" Version: ")+"%s\r\n"+ \
_(" Author : ")+"%s\r\n"+ \
_(" Description:")+"%s\r\n"
! style = win32con.MB_OK | win32con.MB_ICONINFORMATION
! win32ui.MessageBox(text % (VERSION,"","","",""), _("About") , style)
def runForm(self, step, parameters = {}):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue-navigator/src UIwin32.py,
Bajusz Tamás <=