C
C#ā€¢3mo 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ā€¢3mo ago
depends, why do you want to do that?
! Maniust
! ManiustOPā€¢3mo ago
to make a bot software a discord bot software how can i do it
Pobiega
Pobiegaā€¢3mo 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
! ManiustOPā€¢3mo 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ā€¢3mo ago
so why don't you implement the bot portions in C#?
! Maniust
! ManiustOPā€¢3mo ago
because is Python not C#
Jimmacle
Jimmacleā€¢3mo ago
but discord bots don't have to be python
! Maniust
! ManiustOPā€¢3mo ago
I prefer python to make a discord bot
Jimmacle
Jimmacleā€¢3mo ago
why do they need to make a bot at all, can't you develop a bot configurable enough to meet their needs?
! Maniust
! ManiustOPā€¢3mo ago
Because it is an application for people who have no knowledge.
Jimmacle
Jimmacleā€¢3mo ago
which is why i'm suggesting something even easier for people with no knowledge šŸ˜›
! Maniust
! ManiustOPā€¢3mo ago
If I continue explaining, I'll practically tell you my project. and I don't want them to steal my project
Jimmacle
Jimmacleā€¢3mo 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
! ManiustOPā€¢3mo ago
yes
Jimmacle
Jimmacleā€¢3mo 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
! ManiustOPā€¢3mo ago
as variables because is not for me is for publish the aplication
Jimmacle
Jimmacleā€¢3mo ago
publish for who?
! Maniust
! ManiustOPā€¢3mo ago
to do something for people other than me šŸ’ø freemium
Jimmacle
Jimmacleā€¢3mo 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
! ManiustOPā€¢3mo 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ā€¢3mo ago
you don't want to send users code... but you want to generate code for them?
Keswiik
Keswiikā€¢3mo ago
no idea why you think you need c# for this, you can use python and tk/ctk to build your UI
Jimmacle
Jimmacleā€¢3mo ago
i'm just really confused about the whole premise of the project it sounds like a giant XY problem
Keswiik
Keswiikā€¢3mo ago
same
Jimmacle
Jimmacleā€¢3mo 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
! ManiustOPā€¢3mo ago
tk/ctk ? what is that
Keswiik
Keswiikā€¢3mo ago
tkinter/customtkinter ui library for python
! Maniust
! ManiustOPā€¢3mo 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ā€¢3mo 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
! ManiustOPā€¢3mo ago
No i want to do this
Jimmacle
Jimmacleā€¢3mo 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
! ManiustOPā€¢3mo ago
ScriptRuntime?
Jimmacle
Jimmacleā€¢3mo ago
?
! Maniust
! ManiustOPā€¢3mo 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ā€¢3mo 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
! ManiustOPā€¢3mo ago
ok
Jimmacle
Jimmacleā€¢3mo ago
that was a question lol
! Maniust
! ManiustOPā€¢3mo ago
yes do you have one? for python I need a UI dessigner like a windows form
Jimmacle
Jimmacleā€¢3mo ago
i don't use python
! Maniust
! ManiustOPā€¢3mo ago
thats the reason
Jimmacle
Jimmacleā€¢3mo ago
?
! Maniust
! ManiustOPā€¢3mo ago
o dont use python very good too so
Jimmacle
Jimmacleā€¢3mo 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
! ManiustOPā€¢3mo ago
But i am bad making UI using code i am better with UI designer
Jimmacle
Jimmacleā€¢3mo ago
it's never too late to learn
! Maniust
! ManiustOPā€¢3mo ago
I tryed a lot of time
! Maniust
! ManiustOPā€¢3mo 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ā€¢3mo ago
why do you need to actually call python code? aren't you generating code?
! Maniust
! ManiustOPā€¢3mo ago
like to finish calling a big python code the big finished python code generated
Jimmacle
Jimmacleā€¢3mo ago
then just start a python process
Jimmacle
Jimmacleā€¢3mo ago
you don't need anything python specific for that
! Maniust
! ManiustOPā€¢3mo ago
what is that i dont understand I speak spanish
Jimmacle
Jimmacleā€¢3mo ago
it's how you start another process in C# like python.exe
! Maniust
! ManiustOPā€¢3mo ago
But without opening a console? like a script
Jimmacle
Jimmacleā€¢3mo 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
! ManiustOPā€¢3mo ago
Oh thanks and I can use it on C# windows form ? :D?
Want results from more Discord servers?
Add your server