convert vb.net to python [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 10 months ago.
Improve this question
hello guys i'm wondering if i can convert vb.net codes to python ?!
i have this code
VB.net
dim t as new threading.thread( adressof x,100)
t.start
sub x
do work
end sub
i guess it's like
def thread(self):
t = threading.thread(adressof)
self.x()
def x(self):
pass
so there any converter ? it would be so nice because i got source code for program in vb.net and as you know it's work on only Windows and i want to make it work in Linux so i need Vb to python converter .. thanks a lot guys

No, there is no converter. They are wildly different languages and VB.NET relies on the .NET framework to function, which Python doesn't.
If you need to get your .NET program working under Linux, you would be much better off utilizing Mono.

There is Visual Basic -> Python translator called vb2py, but it hasn't been updated in several years. I'm currently working on a tool called universal-transpiler that translates a subset of VB.NET into several other languages, including Python.

Here there are two converters:
http://vb2py.sourceforge.net/
https://www.digitalcoding.com/tools/vb-csharp-to-python-code-converter.html

Related

Best way to build a desktop app while keeping my python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
This post was edited and submitted for review 1 year ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
So, I've built this program using python what is currently running in the terminal.
My goal is to eventually design the application in a modern way like (discord, slack, or any other 2021 downloaded desktop-app),but I'm not really sure what to use.
The thing is, I know React/Electron would be the best way to build/design a desktop application like discord, teams etc. However, I'm looking to keep my python as some sort of backend, while using lets say Electron as front
How can I keep my python functions, while designing a modern GUI/front end?
Thanks for advice
wiki.python.org has GuiProgamming entry, where GUI frameworks for python are enumerated. You need to select framework which does support platform you are targeting. If you are interested in fine control of look I would suggest Kivy cross-platform framework.
You could use the Tkinter python module although it is not to much like react.

How to convert python script to pascal script? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have app that need Inno Setup to pack it. And aslo i need to write some Pascal code in [Code] section.The problem is that i am very familiar with python but not familiar with Pascal,So i want to know it's there have any tool covert python code to pascal code, or some other methods, thanks.
Unfortunately you won't be able to directly convert python code to pascal
Python is a dynamically typed interpreted language, whereas Pascal is a statically typed compiled language. This means that any converter would need to know the type of every variable used in your python script, which can change throughout a script.
Providing you know the typings of your python code your easiest solution if the Pascal is 100% required would be to go through your python line by line and re-write in Pascal using online resources to find the equivalant syntaxes.
Some things won't convert cleanly due to changing of types mid script, these will need to be corrected.

How do I learn Python as someone who knows MATLAB and C? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am a graduate student starting to do research in Mathematical Optimization. I have a code for my algorithm in MATLAB (using object-oriented programming) that I want to translate into Python because I feel it'll be a much better language to work with for large-scale data. I am fairly comfortable with MATLAB and C.
My questions are:
1) what would be a good resource to start learning? I want to be able to translate my current code into Python, and the only 'specialized' function I'm using is norm().
2) Is there a recommended editor? I am on Linux Mint.
Thank you.
I would not use Eclipse if you are coming from a scientific background using Matlab, consider using Anaconda, you will need to decide between 2.7 & 3.5 versions.
Both are very, very good. And as far as a great source for learning about programming in Python. Try the Coursera courses online through University of Michigan taught by Charles Severence.
It walks you through a myriad of techniques to manipulate data and build thoughtful python code. the best part is the audit (which is free) allows you to fully participate in the course, including coding samples.
Honestly, I learned simply taking the Code Academy Python Course and by printing out a few cheat sheets then just doing it.

Recommended Replacement for IronPython when using Robot Framework with .NET [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
The Robot Framework user guide recommends using IronPython to run tests against .NET applications. The only problem is that IronPython seems to be dying, given the last release was almost two years ago. Are there any recommended replacements for IronPython when using Robot Framework with .NET?
I'm currently using CPython with Python for .NET (aka PythonNet). It works but the data type conversion is a bit clunky: It automatically converts some data types, like integers, between Python and .NET, but others, like System.DateTime, it brings them through into Python as .NET data types. The result is a lot of type conversion code in the user keywords, to be able to compare data read from the database with the data read from the .NET system under test. It's annoying enough that I'm concerned users will be put off by the hassle and avoid using Robot Framework for testing.
EDIT: A co-worker has pointed out that IronPython is still alive, and after almost two years they have recently dropped a new release (2.7.6). So IronPython is still a valid choice for Robot Framework.
A co-worker has pointed out that IronPython is still alive, and after almost two years they have recently dropped a new release (2.7.6). So IronPython is still a valid choice for Robot Framework.

Gui Library in Python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am in need of making an interface for Automata Construction. For those who are unaware of what an automata is, I basically need circles and arrows, extending them on the user interface and then various text to describe it. For example :- http://en.wikipedia.org/wiki/File:DFAexample.svg
I was wondering if there is any advanced library in Python which could let me do all of this. Please give me suggestions. I plan to use lots of internal frames and showing parsing of strings diagramatically . I had planned to use jython to use the swing libraries but I would like to know if there any other suggestions that I can use.
I've used PyQt4 to produce something like this:
http://doc.qt.nokia.com/4.6/graphicsview-diagramscene.html
which is the C++ version. Draw boxes, draw arrows, drag them around and so forth. Actually I think I pretty much ported the C++ version line-by-line to Python. Or someone else did.
PySide (Qt), WxPython, PyGtk
I looked at your picture and have another one idea - you can use graphviz and pydot.

Categories