Click here to Skip to main content
14,265,540 members
Rate this:
Please Sign up or sign in to vote.
See more:
got started with python tkinter and visual studio c# forms. mostly the functionality im developeing is search and replace. and of using of regex. started working on it by tkinter python and seperatly in c#. just wandering if perhaps there are known superior options so i dont look back after i put alot of work into and regret not doing it in a better suited langauge.

What I have tried:

been wokring on it in python tkinter and seperatly in c#
Posted
Updated 1-Jul-19 20:22pm
Comments
BillWoodruff 1-Jul-19 1:54am
   
Depends on what your goals are: self-education ? a usable app for yourself asap ? Full-featured ? limited features ? interacts with Web ?

Tell us more about "why" you are doing this.
Rate this:
Please Sign up or sign in to vote.

Solution 1

To be honest, it's doesn't matter which language you use: it's the framework that you know and understand that counts; all other things being equal.

Picking up a new language is a quick affair (provided you are proficient and experienced in at least one already, a new language is days - and the more you know, the quicker new ones should be). But a framework? That's months to become proficient in - and unless you know the framework well, you never know that there is a quicker or better way to do things. So if you are familiar and experienced with the .NET framework, then any language you know for .NET (such as C#) will do. And so on.

The only time that's way off the mark is when you are changing environments: if you are used to C++ Windows application development, then PHP for a web site is going to be a stretch; if you are used to Java Android coding, then iPhone will not be a simple transition.

Personally? I wouldn't touch Python with a ten foot cattle prod: it's less a coding language than a poor scripting language with no assistance to produce anything of quality. I'm sure it's fine for little projects, but for anything major it's a bad choice. Stick to your C# and you'll be fine.
   
Comments
nadavrock 1-Jul-19 4:37am
   
good answer. i like the diqaulification of python and the hard recommendaiton to stick to c#. the sort of confidant advice i was looking for
BillWoodruff 2-Jul-19 2:26am
   
I think there's another dimension to consider ... native rich- and simple- Text controls ... here that may be critical, and I've added a solution that explores that.
Rate this:
Please Sign up or sign in to vote.

Solution 3

I think the key question is: does your choice of FrameWork, Language, and GUI resources toolkit and its API, give you some visual tools that will immediately help you write a rich-text editor, or a simple Text editor.

imho, .NET, C#, and your choice of WPF, or WinForms "flavors," offers you both rich- and simple- TextBox Controls to use that have many powerful features you can further develop to create advanced functionality.

There are many examples of WinForm RichTextBox based word-processors on CodeProject, and other sites. I am sure WPF has similar resources.

Take a look at Pavel Torgashov's 'Fast Colored TextBox for Syntax Highlighting' [^] for a fine example of what you can build using the WinForm RichTextBox.

This recently updated CP article 'HandlEdInput - Powerful and Highly Customizable Input Handler for TextBox, RichTextBox and ComboBox' provides a powerful set of tools you can use to filter text input to do things like make a TextBox that can only accept a valid web URL: [^]
   
v2
Rate this:
Please Sign up or sign in to vote.

Solution 2

One well known text editing library is Scintilla[^], used, for instance by Notepad++[^]. Is is C++, though.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100