[IronPython] Who understands ByRef?

2006-10-16 Thread jeff sacksteder
Can anyone enlighten me?On 10/14/06, jeff sacksteder <[EMAIL PROTECTED]> wrote: On 10/13/06, Martin Maly < [EMAIL PROTECTED]> wrote: Int16 is a type: System.Int16 and I am calling its constructor, passing "output" as the value:  System.Int16(output), just like

Re: [IronPython] Typing problem with vendor library?

2006-10-13 Thread jeff sacksteder
On 10/13/06, Martin Maly <[EMAIL PROTECTED]> wrote: Int16 is a type: System.Int16 and I am calling its constructor, passing "output" as the value:  System.Int16(output), just like in Python you can call:  int(3.5), this is very similar, except constructing .NET System.Int16 type.An ex

Re: [IronPython] Typing problem with vendor library?

2006-10-13 Thread jeff sacksteder
t the int to whichever type you want to use:   board.AIn(channel, mode, Int16(output))   Hope this helps Martin   From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of jeff sacksteder Sent: Wednesday, July 19, 2006 9:54 PM To: users@lists.ironpython.com Subject: [IronPyt

Re: [IronPython] Final release packaging

2006-08-31 Thread jeff sacksteder
I'm preparing an unofficial msi package for my own use using the Wix toolkit. Anyone knowledgeable in this area who is willing to assist, contact me directly and we can collaborate off-line until we have something useful. ___ users mailing list users@li

[IronPython] Form properties clarification

2006-08-28 Thread jeff sacksteder
If a form has one of it's properties changed(i.e. Text or ReadOnly) and that change is not immediately reflected in the visual representation of the control onscreen, is that automatically a bug?Is it rather that some controls require that additional methods be called- for example, layout or refres

[IronPython] DataGridViewRow resisting property modification

2006-08-28 Thread jeff sacksteder
I can't post an example, as my controls are bound to datasources and do not lend themselves to distribution. My DataGridView contains rows representing records previously entered into the database. The objective is to allow the user to add rows, but not alter the contents of existing rows. It seems

[IronPython] Final release packaging

2006-08-26 Thread jeff sacksteder
I haven't heard any discussion about how the final release will be packaged. Will it be similar to the existing releases or a more polished msi? I'd like to see an installer with that drops the binaries into a known location and adds it to the system path, add itself to add/remove programs, etc- at

[IronPython] decimal dataype

2006-08-25 Thread jeff sacksteder
What's the favored way of handling fixed-point datatypes? Should I be using decimal from the standard library, or a .net datatype of some sort? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

[IronPython] pdb files

2006-08-11 Thread jeff sacksteder
I have compiled my application to an exe.Must I distribute the .pdb files along with my app or can I just delete them? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

[IronPython] producing exe's

2006-08-07 Thread jeff sacksteder
If I make exe's like this-ipyw.exe -X:SaveAssemblies myscript.pyI still get the console window. Is this correct? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

[IronPython] How to conditionally alter DataGridViewButtonColumn?

2006-08-03 Thread jeff sacksteder
I'd like to change the text of my button column based on some criteria. If I handle the CellFormatting event, I can get a reference to the Cell, but how do I then get to the Button Control within? ___ users mailing list users@lists.ironpython.com http://l

[IronPython] weirdness with DataGridViewButtonColumn

2006-08-02 Thread jeff sacksteder
Could someone please try the following code? By every piece of documentation I can find, this SHOULD create two button columns with the text provided displayed on them. All I am getting is blank buttons and I'm beginning to suspect that there is something wrong with my workstation. import clrclr.Ad

[IronPython] new icons quibble with RC-1

2006-07-28 Thread jeff sacksteder
I note that ipy.exe has a new icon.The titlebar icon reflects this new icon if the Forms.FormBorderStyle.FixedDialog property is set. If not, the icon is the previous, colored squares one. An oversight? ___ users mailing list users@lists.ironpython.com

Re: [IronPython] When does data binding occur?

2006-07-26 Thread jeff sacksteder
Do you call DataBind ?No, Call it on what? The Datagridview? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

[IronPython] When does data binding occur?

2006-07-25 Thread jeff sacksteder
In my __init__ method, I create a DataGridview and set it's datasource to a BindingSource previously created. If the very last line of my __init__ gets the 'Rows' property of the DGV, it is an empty collection. I can get other attributes( like 'Name') without any problem. If I get 'Rows' from outsi

[IronPython] Ah, DataGridView- my cruel, inconstant muse.

2006-07-25 Thread jeff sacksteder
DataGridViewCheckBoxColumns seem to return (True|None) instead of (True|False) even if The ThreeState and FalseValue attributes are set to 'False'.  One of us is in error... ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/lis

Re: [IronPython] missing method in datagridview?

2006-07-21 Thread jeff sacksteder
I think.Columns['ButtonCol'] not working may be a bug.  .Columns.Item['ButtonCol'] shouldn't work.  The interesting question is if the bound columns should show up as well – that's probably not our bug but I won't know w/o doing some more research into how the columns are supposed to work.  Intere

[IronPython] Typing problem with vendor library?

2006-07-19 Thread jeff sacksteder
I have a data-acquisition device whose vendor provides a dotnet library for software integration. The dynamic nature of IP is giving me a bit of a problem. To record data from the unit, I make a method call like this: errorlevel = board.AIn(channel,mode,output)It seems that the library wants to put

Re: [IronPython] missing method in datagridview?

2006-07-19 Thread jeff sacksteder
Can you access the DataGridViewColumnCollection via indexers (eg myDataGridCollection[0] ? )  Yes.dgv = DataGridView(AutoGenerateColumns = True,DataSource = myBindingSource)myCol = DataGridViewButtonColumn(Text="Spaminate",Name="ButtonCol",UseColumnTextForButtonValue = True) dgv.Columns.Add(myCol)

Re: [IronPython] missing method in datagridview?

2006-07-19 Thread jeff sacksteder
If Count is zero then presumably there's no items in the collection.  Is that possible?In this instance, I have three columns bound to a DataSet, and a button column that I Add()-ed. "Count" only says I have 1 Column. The bound columns do not appear to count. I even tried moving the count statemen

[IronPython] missing method in datagridview?

2006-07-19 Thread jeff sacksteder
I have a DataGridViewCollumnCollection that appears to not have an "Item" attribute. The "Count" attribute =  0, which I don't understand either. Is this missing functionallity or am I missing something? Excepting this, everything in my app works correctly. _

Re: [IronPython] data binding

2006-07-17 Thread jeff sacksteder
Let me show a more specific example. How does the saveChanges method find a reference to the correct DataAdapter to call Update() upon?dataConn = OleDbConnection('provider=microsoft.jet.oledb.4.0;data source=cheeseshop.mdb ;')cheese_sql = 'select * from cheese'my_DA = OleDbDataAdapter(cheese_sql,da

Re: [IronPython] data binding

2006-07-17 Thread jeff sacksteder
So how do I propagate my changes back, then? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

[IronPython] data binding

2006-07-17 Thread jeff sacksteder
Another tutorial opportunity for Michael.I have a DataGridView control containing data that needs to be flushed back into the original data source. I believe the following to be true:The DataGridView control is bound to the DataSet Object, which is bound to the DataAdapter, which connects to the Da

[IronPython] modal dialog example

2006-07-06 Thread jeff sacksteder
I'm have trouble mentally translating the Vb and C# examples I found online. Could someone finish this trivial example of calling a modal dialog and returning the choice that was selected?import clrclr.AddReference ('System.Windows.Forms')from System.Windows import Formsclass MyMainForm(Forms.Form)

[IronPython] TabPages - misunderstanding or bug?

2006-06-26 Thread jeff sacksteder
The TabPages attribute of the TabControl class contains a collection of TabPage objects. I was under the impression that individual tabs would be accessable by index or key.  That is apparently not the case.Is this a bug or a misunderstanding on my part? >>> for p in tab_book.TabPages:... print

Re: [IronPython] Serial Ports

2006-06-25 Thread jeff sacksteder
For the sake of those reading this later-The trouble with my previous example is that the ReadLines() method of a serial port expects a simple newline(\n), while the return key in Windows Hyperterminal sends a carriage return(\r) only. I'm not sure if this behaviour is because of the CLR or of Iron

[IronPython] serial ports

2006-06-24 Thread jeff sacksteder
I'm having trouble reading data from a serial port. I'm connected with a null modem to another pc- I can send text fine with the Write() method, so I know the cable and bits are all correct. I'm trying something like from System.IO.Ports import SerialPorts = SerialPort(PortName='COM1',BaudRate=960

[IronPython] Running applications vs. forms?

2006-06-17 Thread jeff sacksteder
To clarify my earlier message-If I want to create a non-trivial application, I will have several forms and dialogs. My(apparently broken) understanding is that I would create a class representing the application and pass that to the Application.Run(method).  For example, the tiny app here:import c

[IronPython] Application objects

2006-06-17 Thread jeff sacksteder
Given the general lack of IP example code, could someone post a simple example of an application that contains multiple forms or dialogs? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] Serial comms with IronPython

2006-06-16 Thread jeff sacksteder
On 6/16/06, jeff sacksteder <[EMAIL PROTECTED]> wrote: Does anyone have an example of how to use System.IO.Ports.SerialPort from IronPython?I don't know if this will tell you anything new, but there's some sample vb that might be useful. http://www.devx.com/dotn

Re: [IronPython] Serial comms with IronPython

2006-06-16 Thread jeff sacksteder
Does anyone have an example of how to use System.IO.Ports.SerialPort from IronPython?I don't know if this will tell you anything new, but there's some sample vb that might be useful. ___ users mailing list users@lists.ironpython.com http://lists.ironpyth

Re: [IronPython] compiling standalone programs

2006-06-15 Thread jeff sacksteder
And this will produce a source.exe file.  The executable, however, willstill need the IronPython.dll reference.That appears to still create a console window at runtime.  Can that be  disabled? I know that Py2exe can create 'console' or 'windows' applications optionally. ___

[IronPython] compiling standalone programs

2006-06-14 Thread jeff sacksteder
So what is the status of compiling to standalone IL programs? Last thing I heard was that it was rather experimental. ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] Avalon tutorial

2006-01-02 Thread jeff sacksteder
Are you using ip.bat or ironpythonconsole.exe? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] 1.0 Beta 1 is out now!

2005-12-30 Thread jeff sacksteder
MSI packaging has been very low on our list since my impression is that most IronPython users are happier with the zip file style of installation where you can know exactly where everything came from and went.  If there's interest in an MSI installer we can prioritize it higher.  We expect to spli

Re: [IronPython] 1.0 Beta 1 is out now!

2005-12-30 Thread jeff sacksteder
Will MSI packaging happen in the beta timeframe or is that planned for just before 1.0-final? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

[IronPython] tab completion?

2005-12-30 Thread jeff sacksteder
In the demo video, it appears that Jim H. is using tab completion in the interpreter. If so, how does that feature operate? The tab key itself does nothing, and the keyboard is not visable in the video. ___ users mailing list users@lists.ironpython.com ht

Re: [IronPython] Bitwise boolean operators and Forms

2005-12-28 Thread jeff sacksteder
I was unclear on the nature of Anchor & Dock. Mistakes were made.On 12/28/05, Keith J. Farmer <[EMAIL PROTECTED] > wrote: Perhaps he intends Anchor instead of Dock? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.co

[IronPython] Bitwise boolean operators and Forms

2005-12-28 Thread jeff sacksteder
The code in this snippet fails, claiming the bitwise operator '|' is unsupported for for DockStyles. Is this an unimplemented item, bug, or misunderstanding on my part? import sys sys.LoadAssemblyByName('System.Windows.Forms') from System.Windows.Forms import * my_control = RichTextBox() my_cont

Re: [IronPython] DataGridView

2005-12-22 Thread jeff sacksteder
I'm sorry, I meant in Python. ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

[IronPython] DataGridView

2005-12-21 Thread jeff sacksteder
Can someone point me to an example of using a DataGridView control? More generally, Are there any public repositories of example code? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com