Search found 9 matches

by victor-ki
Thu May 28, 2009 5:36 pm
Forum: Platform Related Issues
Topic: wxMAC - Add item into the Window menu
Replies: 2
Views: 820

wxMAC - Add item into the Window menu

Hi!

Does anybody know how to add item into the default "Window" menu?

I tryied this code to get menu object

Code: Select all

        WindowMenuIndex = self.GetMenuBar().FindMenu("Window")
but it returns "wx.NOT_FOUND".

wxPython 2.8.9.2
[/code]
by victor-ki
Thu May 21, 2009 12:39 pm
Forum: Platform Related Issues
Topic: wxMAC - moving frames by toolbar or statusbar
Replies: 9
Views: 2369

Thanks for the research!
by victor-ki
Sun May 17, 2009 6:06 pm
Forum: Platform Related Issues
Topic: wxMAC - moving frames by toolbar or statusbar
Replies: 9
Views: 2369

Auria wrote:Weird. Is it a native toolbar? My wxWidgets app used a native toolbar on OS X and can be dragged around like every other app
Yes, it looks like a native toolbar.
by victor-ki
Sun May 17, 2009 6:03 pm
Forum: Platform Related Issues
Topic: wxMAC - moving frames by toolbar or statusbar
Replies: 9
Views: 2369

This is a small script which I created to play with a toolbar. import wx class MainToolBar(wx.ToolBar): def __init__(self, Parent): wx.ToolBar.__init__(self, Parent) self.Bind(wx.EVT_MOUSE_EVENTS, self.OnMouse) self.AddSeparator() self.Realize() def OnMouse(self, Event): print "event" Even...
by victor-ki
Fri May 15, 2009 7:33 am
Forum: Platform Related Issues
Topic: wxMAC - moving frames by toolbar or statusbar
Replies: 9
Views: 2369

Managing mouse events

Thanks for the tip about mouse events. Today I tried to do that, but I don't receive any events once the toolbar is attached to a frame (wx.Frame.SetToolBar). So, I don't have any ideas how to catch them.

Forgot to say, I'm using wxPython 2.8.9.2.
by victor-ki
Thu May 14, 2009 3:02 pm
Forum: Platform Related Issues
Topic: wxMAC - Taking screenshots problem?
Replies: 5
Views: 1563

That helped

Thanks, I used screenshotgen's way to make screenshot of the area: import wx import subprocess app = wx.App(redirect=False) BitmapPath = "/tmp/" ret = subprocess.call(["screencapture", "-x", BitmapPath + "screen.png"]) print ret FullScreenBitmap = wx.Bitmap(Bi...
by victor-ki
Wed May 13, 2009 12:42 pm
Forum: Platform Related Issues
Topic: wxMAC - Taking screenshots problem?
Replies: 5
Views: 1563

wxMAC - Taking screenshots problem?

Hi,

I have to take a screenshot of the Window (not whole screen), but get a black area at the top. On MS Windows it works fine, but on Mac OS X - no.

It looks that Width & Height of the Blit function is not correctly processed.

Any ideas?

wxWidgets 2.8.9.2 / OS X 10.5.6
by victor-ki
Wed May 13, 2009 6:54 am
Forum: Platform Related Issues
Topic: wxMAC - SashLayoutWindow problem
Replies: 1
Views: 538

wxMAC - SashLayoutWindow problem

Hi, Anyone knows how to make a Sash "moving" line visible on Mac? It is a default for Windows, but i don't know how to make that on OS X. Sorry, I maybe use an incorrect word "moving". To explain better: I only see the previous and new position of the sash, but don't have the gra...
by victor-ki
Wed May 13, 2009 6:45 am
Forum: Platform Related Issues
Topic: wxMAC - moving frames by toolbar or statusbar
Replies: 9
Views: 2369

wxMAC - moving frames by toolbar or statusbar

Hi guys,

It is possible to move frames (windows) by clicking / dragging the toolbar & statusbar (but not only frame titlebar). It is a default behavior on OS X.

Is any default way exits to do that in wxWidgets?

wxWidgets 2.8.9.2 / Mac OS X 10.5.6