[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 in Python you can call: int

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

[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

[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

[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

[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] 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

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 statement

[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

[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

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

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 =

[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

[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

[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 =

[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

[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

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/dotnet/Article/31001

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.

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

[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

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

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 split

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

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