Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~5K People Reached
Favorite Forums
Favorite Tags
Member Avatar for imperialguy

I use: Python 2.6 and sqlalchemy 0.6.1 This is what I am trying to do: from sqlalchemy.types import ( Integer, String, Boolean ) from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class SampleMeta(type): def __new__(cls, name, bases, attrs): attrs.update({ 'id': Column('Id', Integer, primary_key=True), 'name': Column('Name', String), 'description': Column('Description', String), 'is_active': Column('IsActive', …

Member Avatar for Gribouillis
0
402
Member Avatar for imperialguy

Platforms: Windows 7/Mac OS X ActiveState Python 2.7.2 Installed docx on Windows 7 at D:\Program Files (x86)\Python27\Lib\site-packages. Installed docx on OS X at /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Following is the sample script (named as docx_example.py), which runs absolutely fine on the python interpreter: #!/usr/bin/env python ''' This file makes an docx (Office 2007) …

Member Avatar for memomk
0
611
Member Avatar for imperialguy

Following is the system and software info [b]Platforms: Windows XP and OSX Lion Activestate Python 2.7.2 wxPython2.9-osx-cocoa-py2.7 (for OSX) wxPython2.9-win32-py27 (for Windows XP)[/b] I am trying to create a UltimateListCtrl using ULC_VIRTUAL and ULC_REPORT mode. I would like to know how can I put a checkbox beside the first column …

0
212
Member Avatar for imperialguy

I want to create an ultimate list ctrl based table where the user can sort the columns by clicking on the column header. Here's the code I attempted: [CODE]import wx import wx.lib.mixins.listctrl as listmix from wx.lib.agw import ultimatelistctrl as ULC APPNAME='Sortable Ultimate List Ctrl' APPVERSION='1.0' MAIN_WIDTH=300 MAIN_HEIGHT=300 musicdata = { …

Member Avatar for woooee
0
479
Member Avatar for imperialguy

Some system info before proceeding further: Platform: Mac OS X 10.7.1 Python Version: ActiveState Python 2.7.1 wxPython Version: [url=http://downloads.sourceforge.net/wxpython/wxPython2.9-osx-2.9.2.1-cocoa-py2.7.dmg]wxPython2.9-osx-cocoa-py2.7[/url] I want the button label to be changed while performing a task So, here is what I did/want: [code]self.run_button=wx.Button(self.panel,ID_RUN_BUTTON,label='Install') self.Bind(wx.EVT_BUTTON, self.OnRun,id=ID_RUN_BUTTON) def OnRun(self,evt): self.run_button.SetLabel('Installing..') #call a function that does the installation …

Member Avatar for Pupo
0
319
Member Avatar for imperialguy

Some details of my machine and installed packages before proceeding further: [B]Mac OSX version: 10.6.6 Python version: Activestate Python 2.7.1 wxpython version: wxpython 2.8 (uses Carbon API hence limited to 32-bit mode arch only) [/B] I installed wxPython2.8-osx-unicode-py2.7 from wxpython website using their .dmg installer file. This package uses the …

Member Avatar for jingda
0
295
Member Avatar for imperialguy

Before proceeding further, my system configuration is as follows: Mac OS X 10.6.6 MATLAB 2010b ActiveState Python 2.7 I have a gui built using matlab. I wrote the following python script to open that matlab gui using pymatlab python module: [code]from pymatlab.matlab import MatlabSession session = MatlabSession() session.run('cd ~/ratter/ExperPort') session.run('addpath(genpath(pwd))') …

0
96
Member Avatar for imperialguy

Platform and Python installation info: [b]Platforms: Windows, OS X Python: Active State Python 2.7 wxPython: Version 2.9[/b] Here is a sample code in which I use a wxMessageBox: [code]import wx,os class Frame(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(100, 100),style=wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX | …

Member Avatar for vegaseat
0
1K
Member Avatar for imperialguy

Some details of my machine and installed packages before proceeding further: [B]Mac OSX version: 10.6.6 Python version: Activestate Python 2.7.1 wxpython version: wxpython 2.8 (uses Carbon API hence limited to 32-bit mode arch only) [/B] I installed wxPython2.8-osx-unicode-py2.7 from wxpython website using their .dmg installer file. This package uses the …

Member Avatar for imperialguy
0
610
Member Avatar for imperialguy

I want to limit the size of a list control box. Let us take the following code: [code] import wx class Students(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(380, 230)) hbox = wx.BoxSizer(wx.HORIZONTAL) panel = wx.Panel(self, -1) self.list = wx.ListCtrl(panel, -1, style=wx.LC_REPORT) self.list.InsertColumn(0, 'name') self.list.InsertColumn(1, 'age') hbox.Add(self.list, …

Member Avatar for richieking
0
240
Member Avatar for imperialguy

Before going into the problem, here is some hardware/software information: Device accessed: Ohaus Scout Pro Digital Weight Machine ([url="http://www.northshorecare.com/ohaus-scout-pro.html"]product link[/url]) Interface used: USB ([url="http://www.carolina.com/product/702448.do?s_cid=ppc_gl_products"]product link[/url]) Serial Port: COM3 OS: WinXP Python Version: Activestate Python 2.7 pyserial version: 2.5 Python recognized this serial port and had no problems opening it. I …

0
150