C
C#ā€¢2mo ago
! Maniust

Hi, how I can use Python commands in C# Windows Form .NET Framework

How I can use Python commands in C# Windows Form .NET Framework
57 Replies
Jimmacle
Jimmacleā€¢2mo ago
depends, why do you want to do that?
! Maniust
! Maniustā€¢2mo ago
to make a bot software a discord bot software how can i do it
Pobiega
Pobiegaā€¢2mo ago
why not just make the bot with C# instead then? or use pyqt to make the interface for the python bot? it doesnt really make sense to mix them
! Maniust
! Maniustā€¢2mo ago
because i am liking to made a tool for people that not know how to made bots Like a mobile app that is used to make discord bots but for PC with an easy interface
Jimmacle
Jimmacleā€¢2mo ago
so why don't you implement the bot portions in C#?
! Maniust
! Maniustā€¢2mo ago
because is Python not C#
Jimmacle
Jimmacleā€¢2mo ago
but discord bots don't have to be python
! Maniust
! Maniustā€¢2mo ago
I prefer python to make a discord bot
Jimmacle
Jimmacleā€¢2mo ago
why do they need to make a bot at all, can't you develop a bot configurable enough to meet their needs?
! Maniust
! Maniustā€¢2mo ago
Because it is an application for people who have no knowledge.
Jimmacle
Jimmacleā€¢2mo ago
which is why i'm suggesting something even easier for people with no knowledge šŸ˜›
! Maniust
! Maniustā€¢2mo ago
If I continue explaining, I'll practically tell you my project. and I don't want them to steal my project
Jimmacle
Jimmacleā€¢2mo ago
i mean, i can imagine what the project is at this point you'll have a form with some options that generates python code
! Maniust
! Maniustā€¢2mo ago
yes
Jimmacle
Jimmacleā€¢2mo ago
what i'm saying is, why do you need to generate a brand new bot at all when you could just write a bot that supports all those options to begin with?
! Maniust
! Maniustā€¢2mo ago
as variables because is not for me is for publish the aplication
Jimmacle
Jimmacleā€¢2mo ago
publish for who?
! Maniust
! Maniustā€¢2mo ago
to do something for people other than me šŸ’ø freemium
Jimmacle
Jimmacleā€¢2mo ago
but you could just make a bot that supports those options and monetize the bot that is even easier for people who don't know how to make bots, because those people would still have to solve the problem of hosting and maintaining them
! Maniust
! Maniustā€¢2mo ago
I dont want to send the code for users i want to use at localhost or similar things not for send the code for users
Jimmacle
Jimmacleā€¢2mo ago
you don't want to send users code... but you want to generate code for them?
Keswiik
Keswiikā€¢2mo ago
no idea why you think you need c# for this, you can use python and tk/ctk to build your UI
Jimmacle
Jimmacleā€¢2mo ago
i'm just really confused about the whole premise of the project it sounds like a giant XY problem
Keswiik
Keswiikā€¢2mo ago
same
Jimmacle
Jimmacleā€¢2mo ago
people who don't know how to make bots want something simple to set up, which would be a bot that you host and they can configure for their own server and is arguably easier to monetize that way
! Maniust
! Maniustā€¢2mo ago
tk/ctk ? what is that
Keswiik
Keswiikā€¢2mo ago
tkinter/customtkinter ui library for python
! Maniust
! Maniustā€¢2mo ago
I want the bot for small communities that want her own bot but with not knowledge but I can do the user interface like a windows form?
Jimmacle
Jimmacleā€¢2mo ago
but i'm still confused why that requires generating code instead of distributing a premade bot that can be configured sounds like it's solving the problem in the wrong place
! Maniust
! Maniustā€¢2mo ago
No i want to do this
Jimmacle
Jimmacleā€¢2mo ago
suit yourself i guess windows forms is one of many ways to make UIs, it's not even the only way to make UIs in C# most languages have something comparable
! Maniust
! Maniustā€¢2mo ago
ScriptRuntime?
Jimmacle
Jimmacleā€¢2mo ago
?
! Maniust
! Maniustā€¢2mo ago
but i want the manueal ui not the type method That is the best problem of the proyect but is a good proyect if I know what i do so I am going to thing how to do
Jimmacle
Jimmacleā€¢2mo ago
idk what this means you want a drag and drop designer? that's not recommended for UIs in general because it leads to unresponsive layouts
! Maniust
! Maniustā€¢2mo ago
ok
Jimmacle
Jimmacleā€¢2mo ago
that was a question lol
! Maniust
! Maniustā€¢2mo ago
yes do you have one? for python I need a UI dessigner like a windows form
Jimmacle
Jimmacleā€¢2mo ago
i don't use python
! Maniust
! Maniustā€¢2mo ago
thats the reason
Jimmacle
Jimmacleā€¢2mo ago
?
! Maniust
! Maniustā€¢2mo ago
o dont use python very good too so
Jimmacle
Jimmacleā€¢2mo ago
you don't use python very good but you want to use it to make bots? you don't really need a UI designer to make a UI
! Maniust
! Maniustā€¢2mo ago
But i am bad making UI using code i am better with UI designer
Jimmacle
Jimmacleā€¢2mo ago
it's never too late to learn
! Maniust
! Maniustā€¢2mo ago
I tryed a lot of time
! Maniust
! Maniustā€¢2mo ago
Nick Proud
YouTube
Supercharge Your C# Code: Integrating Python using Python.NET
šŸ”„ Ready to bridge the gap between Python and C#? Dive into this comprehensive Python.NET tutorial to unravel the art of seamlessly calling Python code from your C# applications! šŸš€ šŸŽÆ In this in-depth guide, you'll explore Python.NET, the ultimate toolkit for achieving exceptional interoperability. Gain proficiency in effortlessly calling Python ...
Jimmacle
Jimmacleā€¢2mo ago
why do you need to actually call python code? aren't you generating code?
! Maniust
! Maniustā€¢2mo ago
like to finish calling a big python code the big finished python code generated
Jimmacle
Jimmacleā€¢2mo ago
then just start a python process
Jimmacle
Jimmacleā€¢2mo ago
you don't need anything python specific for that
! Maniust
! Maniustā€¢2mo ago
what is that i dont understand I speak spanish
Jimmacle
Jimmacleā€¢2mo ago
it's how you start another process in C# like python.exe
! Maniust
! Maniustā€¢2mo ago
But without opening a console? like a script
Jimmacle
Jimmacleā€¢2mo ago
yes you can choose to pipe the program output wherever you want if you want to display it in your form you can, or open up a console and route it there, etc
! Maniust
! Maniustā€¢2mo ago
Oh thanks and I can use it on C# windows form ? :D?
Want results from more Discord servers?
Add your server