<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Open Discussion</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188885/</link><description>Recent posts to Open Discussion</description><atom:link href="https://sourceforge.net/p/npppythonscript/discussion/1188885/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 09 Jun 2024 10:06:50 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/npppythonscript/discussion/1188885/feed.rss" rel="self" type="application/rss+xml"/><item><title>Anybody using PythonScript to create dialogs?</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188885/thread/bef8e0c659/?limit=250#add1/16cf</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;"you cannot make application modal windows in Notepad++" --&amp;gt; This is NOT true.&lt;/p&gt;
&lt;p&gt;"please correct me and show how" --&amp;gt; I'm not going to show you how with Tcl/Tk, because I don't like and don't use it.  &lt;/p&gt;
&lt;p&gt;The capability can be easily demonstrated with this little UI toolkit that a PythonScript user created: &lt;a href="https://community.notepad-plus-plus.org/topic/24389" rel="nofollow"&gt;https://community.notepad-plus-plus.org/topic/24389&lt;/a&gt;&lt;br/&gt;
Suggest you check that out and if you have further questions, post to the community site and someone there will help you out.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sasumner</dc:creator><pubDate>Sun, 09 Jun 2024 10:06:50 -0000</pubDate><guid>https://sourceforge.net562cff3403fd2907321eb5c65af40528ae75b913</guid></item><item><title>Anybody using PythonScript to create dialogs?</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188885/thread/bef8e0c659/?limit=25#add1</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The problem with Pythonscript is that you cannot make application modal windows in Notepad++ with Tcl/Tk (or any other GUI framework, as far as I know...), i.e.  a window that stays on top within Notepad++, until the user closes it.&lt;br/&gt;
You can make a system modal window, but not an application modal window.&lt;br/&gt;
This is a rather severe limitation for Python scripts, as you mostly want the user to be able to interact with the script through a graphical user interface (a listbox or whatever).&lt;br/&gt;
If I am wrong, please correct me and show how!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Karel A</dc:creator><pubDate>Fri, 07 Jun 2024 18:57:17 -0000</pubDate><guid>https://sourceforge.net2f86c9370e62aa6c9be7dca8d1795042fced8aa1</guid></item><item><title>Anybody using PythonScript to create dialogs?</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188885/thread/bef8e0c659/?limit=250#b1d0/da2e</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;You could use Tk that comes with a full install of PythonScript.  (I never liked Tk)&lt;br/&gt;
I suppose you could use Windows low-level API for creating/managing windows, but that sounds, well, exhausting.&lt;br/&gt;
I make do with the "prompt" function; here's an example: &lt;a href="https://community.notepad-plus-plus.org/post/28702" rel="nofollow"&gt;https://community.notepad-plus-plus.org/post/28702&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sasumner</dc:creator><pubDate>Fri, 30 Sep 2022 11:51:21 -0000</pubDate><guid>https://sourceforge.neta9035bdeb1fe8dd281b2f8ef773a563231793cf0</guid></item><item><title>serach reg exp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188885/thread/8be608b3f7/?limit=250#5b81/41f5</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;It appears there may be a problem with the special casing stuff in Pythonscript...see &lt;a href="https://github.com/bruderstein/PythonScript/issues/199" rel="nofollow"&gt;https://github.com/bruderstein/PythonScript/issues/199&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sasumner</dc:creator><pubDate>Mon, 17 May 2021 11:50:02 -0000</pubDate><guid>https://sourceforge.net931082d0e24abdf2bbb27cafd5f9970f44bfc357</guid></item><item><title>serach reg exp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188885/thread/8be608b3f7/?limit=25#5b81</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Taking the addition of "r" for granted so that my backslashes are processed by the regex engine, the problem of uppercase to lowercase characters with "\ L" remains. I doubt the correct syntax to bring everything in lowercase associated with group # 3: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;(\L$3)
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Is this correct? &lt;br/&gt;
Thanks&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">claudio C.</dc:creator><pubDate>Sat, 15 May 2021 19:48:30 -0000</pubDate><guid>https://sourceforge.netf8b51259d907c32a6c2a66c71032c3234483c656</guid></item><item><title>serach reg exp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188885/thread/8be608b3f7/?limit=25#376e</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;hello, but the command editor.rereplace () unlike editor.replace () is not already addressed for the regex engine? if not what is the difference? thanks&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">claudio C.</dc:creator><pubDate>Sat, 15 May 2021 11:46:24 -0000</pubDate><guid>https://sourceforge.nete1426e9117c4a39143e0057b04cdf88630f480a1</guid></item><item><title>serach reg exp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188885/thread/8be608b3f7/?limit=250#493b/3940</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Probably you need to use "raw strings" so that your backslashes aren't consumed by Python's interpretation and not given to the regex engine.&lt;/p&gt;
&lt;p&gt;So, instead of:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;editor.rereplace("abc", "def")
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;do:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;editor.rereplace(r"abc", r"def")&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sasumner</dc:creator><pubDate>Sat, 15 May 2021 11:40:00 -0000</pubDate><guid>https://sourceforge.net399d1c4bc1a442e9f812cb315b6c2c5ba14d0195</guid></item><item><title>serach reg exp</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188885/thread/8be608b3f7/?limit=25#493b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;hi all, I need to manipulate files looking for and modifying some tags, transforming capital letters where present into lowercase. For the search I used regular expressions. This regular expression works perfectly in the npp ++ search and replace command but does not work in a python script. The command in question is: editor.rereplace ("((\ /) *) (&lt;span&gt;[a-zA-Z]&lt;/span&gt; +) ((\ d) +) "," $ 1 (\ L $ 3) $ 4 "). Suggestions? thanks&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">claudio C.</dc:creator><pubDate>Sat, 15 May 2021 07:11:13 -0000</pubDate><guid>https://sourceforge.net9249c99c6d60b1d09a0564e8adfe4ec4b4db6b54</guid></item><item><title>Run Python Script from Command Line</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188885/thread/87a4e762fc/?limit=250#e58f/80ec</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Well, why not just use straight Python without Notepad++ to do manipulation on these files?  That would fit better in a "batch" situation like you describe.  Or would the Pythonscripts use the power of Notepad++ to do something to the text that it would be difficult to duplicate in straight Python?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sasumner</dc:creator><pubDate>Fri, 30 Aug 2019 11:35:20 -0000</pubDate><guid>https://sourceforge.nete4e1407fd4e921b3259436af616800b05fdffc55</guid></item><item><title>Run Python Script from Command Line</title><link>https://sourceforge.net/p/npppythonscript/discussion/1188885/thread/87a4e762fc/?limit=25#e58f</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm an animation Pipeline TD and this is a kind of regular workflow we have for all applications that supporting python , in this case I need to do bunch of string manipulation in a file and need to open the file and run a python script and this is part of automated process with bunch of other pre/post scripts. &lt;br/&gt;
Do you think about any other solution for this ?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hamed</dc:creator><pubDate>Thu, 29 Aug 2019 16:56:12 -0000</pubDate><guid>https://sourceforge.netd18d940931ecb2fee7f78c3a625bcef3a9117f39</guid></item></channel></rss>