Windows 7

How to program an on save macro?

I just want to know the syntax that says when a file is saved do this:

I thought it would be:

onSave : function() {

   //do stuff

}

But it's not.

32-bit operation on 64-bit windows 7

Hi,

I'm working with Komodo 7 and Python 2.7 on Windows 7, 64-bit.

My application makes use of ODBC and it appears that Python is defaulting to 64-bit operation requiring 64-bit odbc drivers. Problem is that I have MS Office that is also using odbc but it's 32-bit. Getting both 32 and 64 bit drivers working on the same platform doesn't seem very feasible.

So the question is, how can I get Komodo and P2.7 to configure themselves as 32 bit only?

Thank,
Charlie

Serial port access under Perl 5.14 for 64bit?

I've installed

C:\Perl64\my.programs>perl -v

This is perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x64-multi-t
hread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2011, Larry Wall

Binary build 1402 [295342] provided by ActiveState http://www.ActiveState.com
Built Oct  7 2011 15:19:36

Error: unpack requires a bytes object of length 4

Uses ActivePython Community edition 32bit on Windows 7 64b

On fresh install of ActivePython I tried to PyPM install packages numpy and scipy.

Downloading fine from repo, but on installing the as runtime, PyPM gives the error message that "unpack requires a bytes object of length 4", and shuts down

What is the problem here?

How do I suppress debugger bringing up libraries when single stepping?

Hi,

I'm gradually figuring out Python and Komodo. Slow going for me. One thing I can't figure out: When I single step through my code, the debugger wants to single step me through the code of every library that's used as part of executing each line of my code. It opens each library as they are apparently referenced. Is there some way to suppress this so that I'm only walking single step through my own code?

Thanks,
Charlie

Solved - How to install pymsql for Komodo python 2.7?

Newbie here.

Using Komodo 7 for Windows 7

Trying to install pymysql from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql. Installer complains that Py2.7 not installed but it is. Happy to not use an installer and drop the library into the proper directory but don't know what/where to grab or where to put.

Thanks!

Charlie

Bug with cyrillic characters in file paths

Hi!
I installed Komodo Edit 7.0 (at Win7). When I try to open some file by right-click menu (..open with — Komodo Edit) it causes an error: "The file G:/*********/test/test.html does not exist. Do you want to create it?" (screenshot — http://d.pr/i/MrgZ ) Where ***** is cyrillic characters in the folder's name.

Drag'n'drop file into Komodo window work fine at same time. And in older version of Komodo Edit was no bugs like this.

How to fix it?

Debugging Django 1.4 on Python 2.7 with Komodo IDE 7

I am trying to use Komodo IDE 7 with Django 1.4 using Python 2.7 and I have some serious problems setting breakpoints.

I have read *anything* on the web regards that and I just cant fix this.
I am using the following command to run my server with Komodo :

set KOMODO_PATH="%ProgramFiles%\ActiveState Komodo IDE 7\lib\support\dbgp\bin"
c:\python27\python %KOMODO_PATH%\pydbgp.py -d localhost:9000 manage.py runserver --noreload

load modules each time the python shell is started

Is there a way (not debugging mode) to load modules each time an interactive python shell is started? Thanks.

updating edit window when underlying local file changes - all within Komodo

I would like to force an edit window to update its contents based on a change in the underlying file. For example:

I have split editor windows. In one window I have a python script that writes to a local file. In the other window I have the local file open and its contents displayed. When the local file changes I have to do certain special things like click on the file tab, or ctrl-tab away from and then back to the changed file before it reflects the changes in its edit window.